For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

Kotlin: Get authorization details

Retrieves details about an OAuth authorization request. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth. Returns OAuthAuthorizationDetails including client info, scopes, and user information. If the response includes only a redirect_url field, it means consent was already given - the caller should handle the redirect manually if needed, so a OAuthRedirect will be returned.

Parameters

Examples

Get authorization details

val details = supabase.auth.oauth.getAuthorizationDetails(authorizationId)
when(details) {
    is OAuthAuthorizationDetails -> {
        println(details.user)
        println(details.redirectUri)
    }
    is OAuthRedirect -> println(details.redirectUrl)
}