Package-level declarations
This package contains resources shared between our B2B and Consumer SDKs, including helpful typealiases, utility functions, data models, and internal support code.
Types
Type alias for StytchResult
A class representing the three states of a deeplink handled by StytchClient.handle() / StytchB2BClient.handle()
A class representing the types of Deeplink responses that the Stytch client has handled
A data class representing a concrete token type and corresponding token parsed from a deeplink
Defines custom endpoints used by the SDK
Type alias for StytchResult
A data class representing the most recent PKCE code pair generated on this device. You may find this useful if you use a hybrid (frontend and backend) authentication flow, where you need to complete a PKCE flow on the backend
Options for configuring the StytchClient
Provides a wrapper for responses from the Stytch API
Properties
The default time that an OTP code will be valid. This is used if you do not provide an expiration duration to an OTP loginOrCreate or send call
The default time that a created session will be valid. This is used if you do not provide a session duration to an authentication call, and defaults to the shortest valid session duration supported by Stytch (5 minutes)