BetterAuthMultiSession class abstract

Typed wrapper for the Better Auth multiSession() plugin.

Multiple accounts signed in on one device, keyed by session cookie. This is a cookie-mode feature; it does not apply in bearer mode.

Annotations
  • @RestApi.new(callAdapter: BetterAuthCallAdapter)

Constructors

BetterAuthMultiSession(Dio dio, {String? baseUrl, ParseErrorLogger? errorLogger})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

listDeviceSessions() Future<Result<List<SessionResponse>>>
Lists every account signed in on this device.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revoke({required Map<String, dynamic> body}) Future<Result<StatusResponse>>
Signs out the account with sessionToken, leaving the others.
setActive({required Map<String, dynamic> body}) Future<Result<SignInEmailResponse>>
Switches the active account to the one with sessionToken.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited