12 lines
No EOL
410 B
Dart
12 lines
No EOL
410 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, [AngelAuthOptions options]);
|
|
|
|
/// Determines whether a signed-in user can log out or not.
|
|
Future<bool> canLogout(RequestContext req, ResponseContext res);
|
|
} |