Kotlin: Retrieve a new session

This method will refresh the session whether the current one is expired or not.

Parameters

Examples

Refresh current session

val session = supabase.auth.refreshCurrentSession()

Refresh session using the refresh token

val session = supabase.auth.refreshSession(refreshToken = "refreshToken")