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.
Sets the session data from the current session. If the current session is expired, setSession will take care of refreshing it to obtain a new session. If the refresh token or access token in the current session is invalid, an error will be thrown.
access_token and refresh_token.SIGNED_IN event is emitted.undefined
undefined
response = supabase.auth.set_session(access_token, refresh_token)