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: Retrieve a session

Returns the current session, or null if there is none.

Examples

Get the session data

val session = supabase.auth.currentSessionOrNull()