Documentation ¶
Index ¶
- type Client
- func (c *Client) Authenticate(body *stytch.TOTPsAuthenticateParams) (*stytch.TOTPsAuthenticateResponse, error)
- func (c *Client) AuthenticateWithClaims(body *stytch.TOTPsAuthenticateParams, claims interface{}) (*stytch.TOTPsAuthenticateResponse, error)
- func (c *Client) Create(body *stytch.TOTPsCreateParams) (*stytch.TOTPsCreateResponse, error)
- func (c *Client) Recover(body *stytch.TOTPsRecoverParams) (*stytch.TOTPsRecoverResponse, error)
- func (c *Client) RecoverWithClaims(body *stytch.TOTPsRecoverParams, claims interface{}) (*stytch.TOTPsRecoverResponse, error)
- func (c *Client) RecoveryCodes(body *stytch.TOTPsRecoveryCodesParams) (*stytch.TOTPsRecoveryCodesResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) Authenticate ¶
func (c *Client) Authenticate(body *stytch.TOTPsAuthenticateParams) ( *stytch.TOTPsAuthenticateResponse, error, )
func (*Client) AuthenticateWithClaims ¶
func (c *Client) AuthenticateWithClaims( body *stytch.TOTPsAuthenticateParams, claims interface{}, ) (*stytch.TOTPsAuthenticateResponse, error)
AuthenticateWithClaims fills in the claims pointer with custom claims from the response. Pass in a map with the types of values you're expecting so that this function can marshal the claims from the response. See ExampleClient_AuthenticateWithClaims_map, ExampleClient_AuthenticateWithClaims_struct for examples
func (*Client) Create ¶
func (c *Client) Create(body *stytch.TOTPsCreateParams) ( *stytch.TOTPsCreateResponse, error, )
func (*Client) Recover ¶
func (c *Client) Recover(body *stytch.TOTPsRecoverParams) ( *stytch.TOTPsRecoverResponse, error, )
func (*Client) RecoverWithClaims ¶
func (c *Client) RecoverWithClaims( body *stytch.TOTPsRecoverParams, claims interface{}, ) (*stytch.TOTPsRecoverResponse, error)
RecoverWithClaims fills in the claims pointer with custom claims from the response. Pass in a map with the types of values you're expecting so that this function can marshal the claims from the response. See ExampleClient_AuthenticateWithClaims_map, ExampleClient_AuthenticateWithClaims_struct for examples
func (*Client) RecoveryCodes ¶
func (c *Client) RecoveryCodes(body *stytch.TOTPsRecoveryCodesParams) ( *stytch.TOTPsRecoveryCodesResponse, error, )
Click to show internal directories.
Click to hide internal directories.