core / com.schibsted.account.session / User / fromSessionCode

fromSessionCode

@JvmStatic fun fromSessionCode(code: String, redirectUri: String, isPersistable: Boolean, codeVerifier: String? = null, callback: ResultCallback<User>, scopes: Array<String>?): Unit

Parameters

code - The session code to create the user from

redirectUri - The redirect URI. Must be found in self service

isPersistable - If the user can be persisted or not. The user's wishes must be respected to be GDPR compliant

codeVerifier - The code verifier used for web flow login with PKCE

callback - The callback to which we provide the User