Sessions
The Sessions interface provides methods for authenticating, updating, or revoking sessions, and properties to retrieve the existing session token (opaque or JWT).
Types
Link copied to clipboard
Data class used for wrapping parameters used with Sessions authentication
Link copied to clipboard
Data class used for wrapping parameters used with Sessions revocation
Functions
Link copied to clipboard
abstract suspend fun authenticate(authParams: Sessions.AuthParams): AuthResponse
Content copied to clipboard
abstract fun authenticate(authParams: Sessions.AuthParams, callback: (AuthResponse) -> Unit)
Content copied to clipboard
Authenticates a Session and updates its lifetime by the specified session_duration_minutes. If the session_duration_minutes is not specified, a Session will not be extended
Link copied to clipboard
abstract suspend fun revoke(params: Sessions.RevokeParams = RevokeParams()): BaseResponse
Content copied to clipboard
abstract fun revoke(params: Sessions.RevokeParams = RevokeParams(), callback: (BaseResponse) -> Unit)
Content copied to clipboard
Revoke a Session and immediately invalidate all its tokens.
Link copied to clipboard
Updates the current session with a sessionToken and/or sessionJwt