Documentation
¶
Index ¶
- type Client
- func (c *Client) Authenticate(ctx context.Context, body *b2c.PasswordsAuthenticateParams) (*b2c.PasswordsAuthenticateResponse, error)
- func (c *Client) AuthenticateWithClaims(ctx context.Context, body *b2c.PasswordsAuthenticateParams, claims interface{}) (*b2c.PasswordsAuthenticateResponse, error)
- func (c *Client) Create(ctx context.Context, body *b2c.PasswordsCreateParams) (*b2c.PasswordsCreateResponse, error)
- func (c *Client) CreateWithClaims(ctx context.Context, body *b2c.PasswordsCreateParams, claims interface{}) (*b2c.PasswordsCreateResponse, error)
- func (c *Client) Migrate(ctx context.Context, body *b2c.PasswordsMigrateParams) (*b2c.PasswordsMigrateResponse, error)
- func (c *Client) StrengthCheck(ctx context.Context, body *b2c.PasswordsStrengthCheckParams) (*b2c.PasswordsStrengthCheckResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { C *stytch.Client Email *email.Client ExistingPassword *existingpassword.Client Session *session.Client }
func (*Client) Authenticate ¶
func (c *Client) Authenticate( ctx context.Context, body *b2c.PasswordsAuthenticateParams, ) (*b2c.PasswordsAuthenticateResponse, error)
func (*Client) AuthenticateWithClaims ¶
func (c *Client) AuthenticateWithClaims( ctx context.Context, body *b2c.PasswordsAuthenticateParams, claims interface{}, ) (*b2c.PasswordsAuthenticateResponse, 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( ctx context.Context, body *b2c.PasswordsCreateParams, ) (*b2c.PasswordsCreateResponse, error)
func (*Client) CreateWithClaims ¶
func (c *Client) CreateWithClaims( ctx context.Context, body *b2c.PasswordsCreateParams, claims interface{}, ) (*b2c.PasswordsCreateResponse, error)
CreateWithClaims 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) Migrate ¶
func (c *Client) Migrate( ctx context.Context, body *b2c.PasswordsMigrateParams, ) (*b2c.PasswordsMigrateResponse, error)
func (*Client) StrengthCheck ¶
func (c *Client) StrengthCheck( ctx context.Context, body *b2c.PasswordsStrengthCheckParams, ) (*b2c.PasswordsStrengthCheckResponse, error)
Click to show internal directories.
Click to hide internal directories.