Skip to content
This repository was archived by the owner on Mar 26, 2023. It is now read-only.

Commit 9feadca

Browse files
committed
Update version and CHANGELOG.md
1 parent 11b6f88 commit 9feadca

File tree

3 files changed

+24
-10
lines changed

3 files changed

+24
-10
lines changed

firebase_auth_oauth/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
## 1.1.0
2+
3+
* set minimum iOS version to 11.4
4+
15
## 1.0.3
6+
27
* Added `signInOAuth` and `linkWithOAuth`
38
* Updated `firebase_auth` to Version ^3.0.1
49
* Updated `firebase_core` to Version ^1.4.0
510

611
## 1.0.2
12+
713
* Updated `firebase_auth` to Version ^2.0.0
814
* Updated `firebase_core` to Version ^1.3.0
915

firebase_auth_oauth/README.md

+17-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
# firebase_auth_oauth
1+
**Note:**
2+
**This plugin is not actively maintained as I am not working with Flutter anymore. Feel free to submit PRs and I will do
3+
my best to work on publishing them or reach out if you wish to be a maintainer.**
24

3-
A Flutter plugin that makes it easy to perform OAuth sign in flows using FirebaseAuth. It also includes support for Sign in by Apple for Firebase.
4-
This plugin supports Android, iOS and Web.
5-
OAuth flows are performed by opening pop-up on top of the application to allow the user to authenticate or the native flow in the case of sign in by apple.
5+
# firebase_auth_oauth
66

7+
A Flutter plugin that makes it easy to perform OAuth sign in flows using FirebaseAuth. It also includes support for Sign
8+
in by Apple for Firebase. This plugin supports Android, iOS and Web. OAuth flows are performed by opening pop-up on top
9+
of the application to allow the user to authenticate or the native flow in the case of sign in by apple.
710

811
# Usage
912

@@ -15,9 +18,9 @@ OAuth flows are performed by opening pop-up on top of the application to allow t
1518
dependencies:
1619
flutter:
1720
sdk: flutter
18-
firebase_auth: ^2.0.0
19-
firebase_core: ^1.3.0
20-
firebase_auth_oauth: ^1.0.2
21+
firebase_auth: ^3.0.1
22+
firebase_core: ^1.4.0
23+
firebase_auth_oauth: ^1.0.3
2124
```
2225

2326
- Then in your project just call
@@ -27,13 +30,18 @@ dependencies:
2730
FirebaseUser user = await FirebaseAuthOAuth().openSignInFlow("A provider ID", [list of scopes], {custom parameters map});
2831
2932
// Sign-in by Apple example
30-
3133
User user = await FirebaseAuthOAuth()
3234
.openSignInFlow("apple.com", ["email"], {"locale": "en"});
3335
3436
// Or you can link an existing logged-in user
3537
User user = await FirebaseAuthOAuth()
3638
.linkExistingUserWithCredentials("apple.com", ["email"], {"locale": "en"});
39+
40+
// Or if the OAuth credential result is needed, you can fetch provider auth result with one of the following
41+
OAuthCredential credential = await FirebaseAuthOAuth().signInOAuth("apple.com", ["email"], {"locale": "en"});
42+
OAuthCredential credential = await FirebaseAuthOAuth().linkWithOAuth("apple.com", ["email"], {"locale": "en"});
43+
USer user = FirebaseAuth.instance.currentUser;
44+
3745
```
3846
Checkout [the example Widget](https://github.com/amrfarid140/firebase_auth_oauth/blob/main/firebase_auth_oauth/example/lib/main.dart).
3947

@@ -53,7 +61,7 @@ to Sign in by Apple on iOS 13 where it uses the native `AuthenticationService`.
5361

5462
# Error Handling
5563

56-
Below are the error codes you might receive when using this plugin
64+
Below are the error codes you might receive when using this plugin
5765

5866
| Code | Meaning |
5967
| ------------- |:-------------:|

firebase_auth_oauth/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: firebase_auth_oauth
22
description: A Flutter plugin that makes it easy to perform OAuth sign in flows using FirebaseAuth. It also includes support for Sign in by Apple for Firebase.
3-
version: 1.0.3
3+
version: 1.1.0
44
homepage: https://github.com/amrfarid140/firebase_auth_oauth/tree/master/firebase_auth_oauth
55

66
environment:

0 commit comments

Comments
 (0)