AuthRoutes class

Auth HTTP routes for routed.

Routes

  • GET /providers lists configured providers.
  • GET /csrf issues CSRF tokens.
  • GET /session returns the current session.
  • GET|POST /signin/{provider} begins sign-in.
  • POST /register/{provider} registers new credentials.
  • GET /callback/{provider} completes OAuth/email flows.
  • POST /signout signs the user out.

Usage

final routes = AuthRoutes(manager);
routes.register(engine.defaultRouter);

Constructors

AuthRoutes(AuthManager manager)

Properties

hashCode int
The hash code for this object.
no setterinherited
manager AuthManager
final
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
register(Router router, {String? basePath}) → void
toString() String
A string representation of this object.
inherited

Operators

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