completeOauthFlow

abstract fun completeOauthFlow(code: String, state: String)

Complete an OAuth flow.

💾 This method alters the persisted account state.

At the conclusion of an OAuth flow, the user will be redirect to the application's registered redirect_uri. It should extract the code and state parameters from the resulting URL and pass them to this method in order to complete the sign-in.

Arguments

  • code - the OAuth authorization code obtained from the redirect URI.

  • state - the OAuth state parameter obtained from the redirect URI.