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
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -279,6 +279,25 @@ Then add the following lines to your code and check for setup instructions for y
279
279
1. If you didn't choose this feature during installation you can uncomment `google-services-auth` in `node_modules\nativescript-plugin-firebase\platforms\android\include.gradle`
280
280
2. Google Sign-In requires an SHA1 fingerprint: see [Authenticating Your Client for details](https://developers.google.com/android/guides/client-auth). If you don't do this you will see the account selection popup, but you won't be able to actually sign in.
281
281
282
+
### getAuthToken
283
+
If you want to authenticate your user from your backend server you can obtain
284
+
a Firebase auth token for the currently logged in user.
285
+
286
+
```js
287
+
firebase.getAuthToken({
288
+
// default false, not recommended to set to true by Firebase but exposed for {N} devs nonetheless :)
appDelegate.prototype.signDidDisconnectWithUserWithError = function (signIn, user, error) {
61
-
if (error === null) {
62
-
console.log("--- OK in signDidDisconnectWithUserWithError");
63
-
} else {
64
-
console.log("--- error in signDidDisconnectWithUserWithError: " + error.localizedDescription);
65
-
}
66
-
};
67
-
*/
68
57
}
69
58
70
59
// making this conditional to avoid http://stackoverflow.com/questions/37428539/firebase-causes-issue-missing-push-notification-entitlement-after-delivery-to ?
@@ -219,16 +208,16 @@ firebase._onTokenRefreshNotification = function (notification) {
0 commit comments