A fork of https://github.com/teal-fm/piper
at main 26 lines 778 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package atproto 4 5// schema: com.atproto.server.resetPassword 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// ServerResetPassword_Input is the input argument to a com.atproto.server.resetPassword call. 14type ServerResetPassword_Input struct { 15 Password string `json:"password" cborgen:"password"` 16 Token string `json:"token" cborgen:"token"` 17} 18 19// ServerResetPassword calls the XRPC method "com.atproto.server.resetPassword". 20func ServerResetPassword(ctx context.Context, c *xrpc.Client, input *ServerResetPassword_Input) error { 21 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.resetPassword", nil, input, nil); err != nil { 22 return err 23 } 24 25 return nil 26}