resume

abstract suspend fun resume(uri: String, flowContext: AuthorizationCodeFlowContext): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for TokenInfo>

Completes the Authorization Code redirect flow by exchanging the authorization code for tokens.

Return

a Result containing TokenInfo on success. On failure the Result wraps RedirectSchemeMismatchException (redirect URI didn't match), MissingResultCodeException (no code in the redirect), or ResumeException (state mismatch or a server-returned error).

Parameters

uri

the redirect URI received from the browser after authorization.

flowContext