From 1471cf99bad6866216156455e14629ad57212402 Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Fri, 25 Jul 2025 10:31:15 +0100 Subject: [PATCH] appview/xrpcclient: add ServerGetServiceAuth API Change-Id: tornwsmnsrnrrlntvzlnoyypyyrqqnxl Signed-off-by: oppiliappan --- appview/xrpcclient/xrpc.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/appview/xrpcclient/xrpc.go b/appview/xrpcclient/xrpc.go index 43242a5..d39c637 100644 --- a/appview/xrpcclient/xrpc.go +++ b/appview/xrpcclient/xrpc.go @@ -87,3 +87,18 @@ func (c *Client) RepoDeleteRecord(ctx context.Context, input *atproto.RepoDelete 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 +} -- 2.43.0