12 lines
No EOL
407 B
Dart
12 lines
No EOL
407 B
Dart
part of angel_auth;
|
|
|
|
/// A function that handles login and signup for an Angel application.
|
|
abstract class AuthStrategy {
|
|
String name;
|
|
|
|
/// Authenticates or rejects an incoming user.
|
|
Future authenticate(RequestContext req, ResponseContext res, {Map options: const {}});
|
|
|
|
/// Determines whether a signed-in user can log out or not.
|
|
Future<bool> canLogout(RequestContext req, ResponseContext res);
|
|
} |