forked from tangled.org/core
this repo has no description

appview/xrpcclient: add ServerGetServiceAuth API

Signed-off-by: oppiliappan <me@oppi.li>

oppi.li 1471cf99 a31cd5d1

verified
Changed files
+15
appview
xrpcclient
+15
appview/xrpcclient/xrpc.go
···
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
+
}