resolveAccessToken
suspend fun SupabaseClient.resolveAccessToken(jwtToken: String? = null, keyAsFallback: Boolean = true): String?(source)
Returns the access token used for requests. The token is resolved in the following order:
jwtToken if not null
SupabaseClient.resolveAccessToken if not null
Auth.currentAccessTokenOrNull if the Auth plugin is installed
SupabaseClient.supabaseKey if keyAsFallback is true
suspend fun <C : MainConfig> SupabaseClient.resolveAccessToken(plugin: MainPlugin<C>, keyAsFallback: Boolean = true): String?(source)
Returns the access token used for requests. The token is resolved in the following order:
MainConfig.jwtToken if not null
SupabaseClient.resolveAccessToken if not null
Auth.currentAccessTokenOrNull if the Auth plugin is installed
SupabaseClient.supabaseKey if keyAsFallback is true