Sessions
interface Sessions
The Sessions interface provides methods for authenticating, updating, or revoking sessions, and properties to retrieve the existing session token (opaque or JWT).
Types
Functions
Link 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 fun authenticateCompletable(authParams: Sessions.AuthParams): CompletableFuture<AuthResponse>
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 fun revoke(params: Sessions.RevokeParams = RevokeParams(), callback: (BaseResponse) -> Unit)
Revoke a Session and immediately invalidate all its tokens.
Link copied to clipboard
abstract fun revokeCompletable(params: Sessions.RevokeParams = RevokeParams()): CompletableFuture<BaseResponse>
Revoke a Session and immediately invalidate all its tokens.
Link copied to clipboard
Updates the current session with a sessionToken and sessionJwt