StartParameters

data class StartParameters(    val context: Activity,     val oAuthRequestIdentifier: Int,     val loginRedirectUrl: String? = null,     val signupRedirectUrl: String? = null,     val customScopes: List<String>? = null)

Data class used for wrapping parameters to start a thirdparty oAuth flow

Parameters

context

the calling Activity for launching the browser

oAuthRequestIdentifier

is an ID for the return intent from the OAuth flow

loginRedirectUrl

The url an existing user is redirected to after authenticating with the identity provider. This should be a url that redirects back to your app. If this value is not passed, the default login redirect URL set in the Stytch Dashboard is used. If you have not set a default login redirect URL, an error is returned.

signupRedirectUrl

The url a new user is redirected to after authenticating with the identity provider. This should be a url that redirects back to your app. If this value is not passed, the default sign-up redirect URL set in the Stytch Dashboard is used. If you have not set a default sign-up redirect URL, an error is returned.

customScopes

Any additional scopes to be requested from the identity provider.

Constructors

Link copied to clipboard
fun StartParameters(    context: Activity,     oAuthRequestIdentifier: Int,     loginRedirectUrl: String? = null,     signupRedirectUrl: String? = null,     customScopes: List<String>? = null)

Properties

Link copied to clipboard
val context: Activity
Link copied to clipboard
val customScopes: List<String>? = null
Link copied to clipboard
val loginRedirectUrl: String? = null
Link copied to clipboard
val oAuthRequestIdentifier: Int
Link copied to clipboard
val signupRedirectUrl: String? = null