authenticate

abstract suspend fun authenticate(url: String, sessionDurationMinutes: Int?): DeeplinkAuthenticationStatus

Handles an incoming deeplink URL, authenticating the token it contains if possible.

Returns DeeplinkAuthenticationStatus.Authenticated for magic links, OAuth, and SSO tokens. Returns DeeplinkAuthenticationStatus.ManualHandlingRequired for password reset and discovery tokens, which require additional user interaction. Returns DeeplinkAuthenticationStatus.UnknownDeeplink if the URL is not a Stytch deeplink.