Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Authenticate(body *stytch.SessionsAuthenticateParams) (*stytch.SessionsAuthenticateResponse, error)
- func (c *Client) AuthenticateJWT(maxTokenAge time.Duration, body *stytch.SessionsAuthenticateParams) (*stytch.SessionsAuthenticateResponse, error)
- func (c *Client) AuthenticateJWTLocal(token string, maxTokenAge time.Duration) (*stytch.Session, error)
- func (c *Client) AuthenticateJWTWithClaims(maxTokenAge time.Duration, body *stytch.SessionsAuthenticateParams, ...) (*stytch.SessionsAuthenticateResponse, error)
- func (c *Client) AuthenticateWithClaims(body *stytch.SessionsAuthenticateParams, claims interface{}) (*stytch.SessionsAuthenticateResponse, error)
- func (c *Client) Get(body *stytch.SessionsGetParams) (*stytch.SessionsGetResponse, error)
- func (c *Client) GetJWKS(body *stytch.SessionsGetJWKSParams) (*stytch.SessionsGetJWKSResponse, error)
- func (c *Client) Revoke(body *stytch.SessionsRevokeParams) (*stytch.SessionsRevokeResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrJWTTooOld = errors.New("JWT too old")
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) Authenticate ¶
func (c *Client) Authenticate( body *stytch.SessionsAuthenticateParams, ) (*stytch.SessionsAuthenticateResponse, error)
func (*Client) AuthenticateJWT ¶
func (c *Client) AuthenticateJWT( maxTokenAge time.Duration, body *stytch.SessionsAuthenticateParams, ) (*stytch.SessionsAuthenticateResponse, error)
func (*Client) AuthenticateJWTLocal ¶ added in v5.1.0
func (*Client) AuthenticateJWTWithClaims ¶ added in v5.7.0
func (c *Client) AuthenticateJWTWithClaims( maxTokenAge time.Duration, body *stytch.SessionsAuthenticateParams, claims interface{}, ) (*stytch.SessionsAuthenticateResponse, error)
func (*Client) AuthenticateWithClaims ¶ added in v5.7.0
func (c *Client) AuthenticateWithClaims( body *stytch.SessionsAuthenticateParams, claims interface{}, ) (*stytch.SessionsAuthenticateResponse, error)
func (*Client) Get ¶
func (c *Client) Get( body *stytch.SessionsGetParams, ) (*stytch.SessionsGetResponse, error)
func (*Client) GetJWKS ¶
func (c *Client) GetJWKS( body *stytch.SessionsGetJWKSParams, ) (*stytch.SessionsGetJWKSResponse, error)
func (*Client) Revoke ¶
func (c *Client) Revoke( body *stytch.SessionsRevokeParams, ) (*stytch.SessionsRevokeResponse, error)
Click to show internal directories.
Click to hide internal directories.