Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
// Lexicon schema: com.atproto.server.getServiceAuth
package atproto
import ( "context"
lexutil "github.com/bluesky-social/indigo/lex/util")
// ServerGetServiceAuth_Output is the output of a com.atproto.server.getServiceAuth call.type ServerGetServiceAuth_Output struct { Token string `json:"token" cborgen:"token"`}
// ServerGetServiceAuth calls the XRPC method "com.atproto.server.getServiceAuth".//// aud: The DID or `did#serviceId` reference of the service that the token will be used to authenticate with.// exp: The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope.// lxm: Lexicon (XRPC) method to bind the requested token tofunc ServerGetServiceAuth(ctx context.Context, c lexutil.LexClient, aud string, exp int64, lxm string) (*ServerGetServiceAuth_Output, error) { var out ServerGetServiceAuth_Output
params := map[string]interface{}{} params["aud"] = aud if exp != 0 { params["exp"] = exp } if lxm != "" { params["lxm"] = lxm } if err := c.LexDo(ctx, lexutil.Query, "", "com.atproto.server.getServiceAuth", params, nil, &out); err != nil { return nil, err }
return &out, nil}