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 ProviderDiscovery
An interface describing the methods and parameters available for starting an OAuth discovery flow for a specific provider
Properties
Functions
Link copied to clipboard
abstract suspend fun authenticate(parameters: OAuth.AuthenticateParameters): OAuthAuthenticateResponse
abstract fun authenticate(parameters: OAuth.AuthenticateParameters, callback: (OAuthAuthenticateResponse) -> Unit)
Authenticate an OAuth flow