OAuth

interface OAuth

The OAuth interface provides methods for authenticating a user, via the supported OAuth providers, provided you have configured them within your Stytch Dashboard.

Types

Link copied to clipboard
data class AuthenticateParameters(val oauthToken: String, val locale: String? = null, val sessionDurationMinutes: UInt = Constants.DEFAULT_SESSION_TIME_MINUTES)

A data class wrapping the parameters necessary to authenticate an OAuth flow

Link copied to clipboard
interface Discovery

An interface describing the parameters and methods available for authenticating an OAuth Discovery flow

Link copied to clipboard
interface Provider

An interface describing the methods and parameters available for starting an OAuth or OAuth discovery flow for a specific provider

Link copied to clipboard

An interface describing the methods and parameters available for starting an OAuth discovery flow for a specific provider

Properties

Link copied to clipboard

Exposes an instance of the Discovery OAuth implementation

Link copied to clipboard
abstract val google: OAuth.Provider

Exposes an instance of the Google OAuth implementation

Link copied to clipboard

Exposes an instance of the Microsoft OAuth implementation

Functions

Link copied to clipboard

Authenticate an OAuth flow