You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: docs/AUTHENTICATION.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ You can sign in a user either
9
9
* by [phone verification](#phone-verification),
10
10
* using a [custom token](#custom-login),
11
11
* using [Facebook](#facebook-login),
12
-
* using [Google](#google-sign-in).
12
+
* using [Google](#google-sign-in),
13
13
* using [Apple](#sign-in-with-apple).
14
14
15
15
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
664
664
### Sign in with Apple
665
665
First, enable Apple login in your Firebase instance.
666
666
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
-
669
667
Then add the following lines to your code and check for further setup instructions for your platform below.
670
668
671
669
```js
@@ -689,7 +687,7 @@ Then add the following lines to your code and check for further setup instructio
689
687
#### iOS
690
688
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.
691
689
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`:
693
691
694
692
```xml
695
693
<key>com.apple.developer.applesignin</key>
@@ -698,9 +696,12 @@ Then add the following lines to your code and check for further setup instructio
698
696
</array>
699
697
```
700
698
699
+
[Here's a complete example.](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/demo/app_resources/iOS/app.entitlements)
700
+
701
701
#### Android
702
702
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.
704
705
705
706
### getAuthToken / getIdToken
706
707
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