exchangeCodeForSession
//fluxbase-kotlin/io.github.nimbleflux.fluxbase.auth/FluxbaseAuth/exchangeCodeForSession
exchangeCodeForSession
Section titled “exchangeCodeForSession”[jvm]
suspend fun exchangeCodeForSession(code: String, state: String? = null): FluxbaseResponse<AuthResult>
Exchange the OAuth authorization code (from the deep-link/callback) for a session and establish it. GETs /api/v1/auth/oauth/{provider}/callback?code&state&redirect_uri. Port of exchangeCodeForSession() (auth.ts:955).
Requires a preceding getOAuthUrl call (for the stored provider).