diff --git a/CHANGELOG.md b/CHANGELOG.md index cd709509..c634eb31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 2.0.1 +* Add generic parameter to `options` on `AuthStrategy.authenticate`. + # 2.0.0+1 * Meta update to improve Pub score. diff --git a/example/example.dart b/example/example.dart index e960b569..722cf066 100644 --- a/example/example.dart +++ b/example/example.dart @@ -34,4 +34,5 @@ class User { Future fetchAUserByIdSomehow(id) async { // Fetch a user somehow... + throw new UnimplementedError(); } diff --git a/lib/src/strategy.dart b/lib/src/strategy.dart index 9558799d..72073686 100644 --- a/lib/src/strategy.dart +++ b/lib/src/strategy.dart @@ -6,5 +6,5 @@ import 'options.dart'; abstract class AuthStrategy { /// Authenticates or rejects an incoming user. FutureOr authenticate(RequestContext req, ResponseContext res, - [AngelAuthOptions options]); + [AngelAuthOptions options]); } diff --git a/pubspec.yaml b/pubspec.yaml index 481b43db..628813af 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: angel_auth description: A complete authentication plugin for Angel. Includes support for stateless JWT tokens, Basic Auth, and more. -version: 2.0.0+1 +version: 2.0.1 author: Tobe O homepage: https://github.com/angel-dart/angel_auth environment: