AuthRoutes class
Auth HTTP routes for routed.
Routes
GET /providerslists configured providers.GET /csrfissues CSRF tokens.GET /sessionreturns the current session.GET|POST /signin/{provider}begins sign-in.POST /register/{provider}registers new credentials.GET /callback/{provider}completes OAuth/email flows.POST /signoutsigns 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