BetterAuthMagicLink class abstract

Typed wrapper for the Better Auth magicLink() plugin.

These routes are new HTTP surface, not present in the core client.

Annotations
  • @RestApi.new(callAdapter: BetterAuthCallAdapter)

Constructors

BetterAuthMagicLink(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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
signIn({required MagicLinkBody body}) Future<Result<StatusResponse>>
Sends a sign-in link to the given email. Delivery is handled by the server; the link's callback carries the token back to the app.
toString() String
A string representation of this object.
inherited
verify({required String token, String? callbackURL}) Future<Result<SignInEmailResponse>>
Verifies a magic-link token, completing sign-in.

Operators

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