endSession

suspend fun endSession(): Boolean

Ends the session. Best effort to end the session. The stored token is removed regardless of the result.

Return

A boolean indicating whether the session was ended successfully.


suspend fun endSession(signOff: suspend (IdToken) -> Boolean): Boolean

Ends the session with a custom sign-off procedure.

Return

A boolean indicating whether the session was ended successfully.

Parameters

signOff

A suspend function to perform the sign-off.