Skip to content

Commit

Permalink
Add const constructor to FlutterAppAuth (#317)
Browse files Browse the repository at this point in the history
shilangyu authored May 9, 2022
1 parent bdcc702 commit 1b45c1e
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions flutter_appauth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.4.2

* Added const constructor to `FlutterAppAuth`

## 2.4.1+1

* Example app has been updated to point to the new demo IdentityServer instance
2 changes: 2 additions & 0 deletions flutter_appauth/lib/src/flutter_appauth.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import 'package:flutter_appauth_platform_interface/flutter_appauth_platform_interface.dart';

class FlutterAppAuth {
const FlutterAppAuth();

/// Convenience method for authorizing and then exchanges code
Future<AuthorizationTokenResponse?> authorizeAndExchangeCode(
AuthorizationTokenRequest request) {
2 changes: 1 addition & 1 deletion flutter_appauth/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_appauth
description: This plugin provides an abstraction around the Android and iOS AppAuth SDKs so it can be used to communicate with OAuth 2.0 and OpenID Connect providers
version: 2.4.1+1
version: 2.4.2
homepage: https://github.com/MaikuB/flutter_appauth/tree/master/flutter_appauth

environment:

0 comments on commit 1b45c1e

Please sign in to comment.