oauth

package
v6.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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
}

func (*Client) Attach added in v6.4.0

func (*Client) Authenticate

func (*Client) AuthenticateWithClaims

func (c *Client) AuthenticateWithClaims(
	body *stytch.OAuthAuthenticateParams,
	claims interface{},
) (*stytch.OAuthAuthenticateResponse, 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL