Python: Exchange an auth code for a session

Log in an existing user by exchanging an Auth Code issued during the PKCE flow.

Parameters

Examples

Exchange Auth Code

response = supabase.auth.exchange_code_for_session("auth_code": "34e770dd-9ff9-416c-87fa-43b31d7ef225")