platform/lib/src/options.dart

19 lines
454 B
Dart
Raw Normal View History

2016-12-07 23:09:21 +00:00
import 'package:angel_framework/angel_framework.dart';
import 'auth_token.dart';
typedef AngelAuthCallback(
RequestContext req, ResponseContext res, AuthToken token);
2016-09-21 06:19:52 +00:00
class AngelAuthOptions {
2016-12-07 23:09:21 +00:00
AngelAuthCallback callback;
2016-11-28 01:04:52 +00:00
bool canRespondWithJson;
2016-09-21 06:19:52 +00:00
String successRedirect;
String failureRedirect;
2016-11-28 01:04:52 +00:00
AngelAuthOptions(
2016-12-07 23:09:21 +00:00
{this.callback,
this.canRespondWithJson: true,
2016-11-28 01:04:52 +00:00
this.successRedirect,
String this.failureRedirect});
}