10 lines
371 B
Dart
10 lines
371 B
Dart
import 'dart:async';
|
|
import 'package:angel_framework/angel_framework.dart';
|
|
import 'options.dart';
|
|
|
|
/// A function that handles login and signup for an Angel application.
|
|
abstract class AuthStrategy<User> {
|
|
/// Authenticates or rejects an incoming user.
|
|
FutureOr<User?> authenticate(RequestContext req, ResponseContext res,
|
|
[AngelAuthOptions<User> options]);
|
|
}
|