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

Commit

Permalink
Update version and CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
amrfarid140 committed Oct 7, 2021
1 parent 11b6f88 commit 9feadca
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
6 changes: 6 additions & 0 deletions firebase_auth_oauth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
## 1.1.0

* set minimum iOS version to 11.4

## 1.0.3

* Added `signInOAuth` and `linkWithOAuth`
* Updated `firebase_auth` to Version ^3.0.1
* Updated `firebase_core` to Version ^1.4.0

## 1.0.2

* Updated `firebase_auth` to Version ^2.0.0
* Updated `firebase_core` to Version ^1.3.0

Expand Down
26 changes: 17 additions & 9 deletions firebase_auth_oauth/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# firebase_auth_oauth
**Note:**
**This plugin is not actively maintained as I am not working with Flutter anymore. Feel free to submit PRs and I will do
my best to work on publishing them or reach out if you wish to be a maintainer.**

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.
This plugin supports Android, iOS and Web.
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.
# firebase_auth_oauth

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. This plugin supports Android, iOS and Web. 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.

# Usage

Expand All @@ -15,9 +18,9 @@ OAuth flows are performed by opening pop-up on top of the application to allow t
dependencies:
flutter:
sdk: flutter
firebase_auth: ^2.0.0
firebase_core: ^1.3.0
firebase_auth_oauth: ^1.0.2
firebase_auth: ^3.0.1
firebase_core: ^1.4.0
firebase_auth_oauth: ^1.0.3
```

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

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

# Error Handling

Below are the error codes you might receive when using this plugin
Below are the error codes you might receive when using this plugin

| Code | Meaning |
| ------------- |:-------------:|
Expand Down
2 changes: 1 addition & 1 deletion firebase_auth_oauth/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: firebase_auth_oauth
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.
version: 1.0.3
version: 1.1.0
homepage: https://github.com/amrfarid140/firebase_auth_oauth/tree/master/firebase_auth_oauth

environment:
Expand Down

0 comments on commit 9feadca

Please sign in to comment.