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

Commit 960cbad

Browse files
Sign In with Apple #1340
1 parent 5d3a863 commit 960cbad

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

docs/AUTHENTICATION.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ You can sign in a user either
99
* by [phone verification](#phone-verification),
1010
* using a [custom token](#custom-login),
1111
* using [Facebook](#facebook-login),
12-
* using [Google](#google-sign-in).
12+
* using [Google](#google-sign-in),
1313
* using [Apple](#sign-in-with-apple).
1414

1515
Each of these login mechanisms need to be enabled in your Firebase console at the 'Login & Auth' tab.
@@ -664,8 +664,6 @@ To solve, you will want to pass in the appropriate iOS controller of the active
664664
### Sign in with Apple
665665
First, enable Apple login in your Firebase instance.
666666

667-
Also add the Services ID if you're not only using using Apple sign in on iOS. Make sure to follow all steps, including completing the "OAuth code flow configuration".
668-
669667
Then add the following lines to your code and check for further setup instructions for your platform below.
670668

671669
```js
@@ -689,7 +687,7 @@ Then add the following lines to your code and check for further setup instructio
689687
#### iOS
690688
1. If you didn't choose this feature during installation you can remove the `platforms` and `node_modules` folders and the `firebase.nativescript.json` file, then run `npm i`. This will prompt your which Firebase features you'd like to enable.
691689
2. Follow [these instructions](https://firebase.google.com/docs/auth/ios/apple), including enabling Sign In for your App ID. You may need to recreate your provisioning profile as well.
692-
3. Add this to `app\App_Resources\iOS\*.entitlements` [as shown here](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/demo/app_resources/iOS/app.entitlements):
690+
3. Add this to `app\App_Resources\iOS\*.entitlements`:
693691

694692
```xml
695693
<key>com.apple.developer.applesignin</key>
@@ -698,9 +696,12 @@ Then add the following lines to your code and check for further setup instructio
698696
</array>
699697
```
700698

699+
[Here's a complete example.](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/demo/app_resources/iOS/app.entitlements)
700+
701701
#### Android
702702
1. If you didn't choose this feature during installation you can remove the `platforms` and `node_modules` folders and the `firebase.nativescript.json` file, then run `npm i`. This will prompt your which Firebase features you'd like to enable.
703-
2. Follow [these instructions](https://firebase.google.com/docs/auth/android/apple), including adding your `SHA-1` hash, website association, website ownership confirmation, creating an Apple private key. Just do everything except for adding Java code, because the plugin takes care of that.
703+
2. In your Firebase console add the "Services ID". Make sure to follow all steps, including completing the "OAuth code flow configuration".
704+
3. Follow [these instructions](https://firebase.google.com/docs/auth/android/apple), including adding your `SHA-1` hash, website association, website ownership confirmation, creating an Apple private key. Just do everything except for adding Java code, because the plugin takes care of that.
704705

705706
### getAuthToken / getIdToken
706707
If you want to authenticate your user from your backend server you can obtain a Firebase auth token for the currently logged in user.

0 commit comments

Comments
 (0)