From d0046ae8da5017e82cb48b15eceeea314afce68c Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Fri, 25 Jul 2025 09:31:15 +0000 Subject: [PATCH] appview/xrpcclient: add ServerGetServiceAuth API Signed-off-by: oppiliappan --- appview/xrpcclient/xrpc.go | 15 +++++++++++++++ 1 file(s) changed, 15 insertion(s)(+), 0 deletion(s)(-) diff --git a/appview/xrpcclient/xrpc.go b/appview/xrpcclient/xrpc.go --- a/appview/xrpcclient/xrpc.go +++ b/appview/xrpcclient/xrpc.go @@ -87,3 +87,18 @@ return &out, nil } + +func (c *Client) ServerGetServiceAuth(ctx context.Context, aud string, exp int64, lxm string) (*atproto.ServerGetServiceAuth_Output, error) { + var out atproto.ServerGetServiceAuth_Output + + params := map[string]interface{}{ + "aud": aud, + "exp": exp, + "lxm": lxm, + } + if err := c.Do(ctx, c.authArgs, xrpc.Query, "", "com.atproto.server.getServiceAuth", params, nil, &out); err != nil { + return nil, err + } + + return &out, nil +} -- tangled.sh