platform/lib/strategy.dart
2016-05-09 16:47:28 -04:00

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);
}