Skip to content

Commit 4378cfb

Browse files
committed
chore(auth): update apple login info
1 parent 8b3026f commit 4378cfb

File tree

17 files changed

+29
-20
lines changed

17 files changed

+29
-20
lines changed

packages/firebase-admob/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-admob",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "NativeScript Firebase - Admob",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-analytics/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-analytics",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "NativeScript Firebase - Analytics",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-app-check/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-app-check",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "NativeScript Firebase - App Check",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-auth/README.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,20 @@ Next, ensure that your app have the "Sign in with Apple" capability.
139139

140140
```ts
141141
import { firebase } from '@nativescript/firebase-core';
142-
import { OAuthProvider } from '@nativescript/firebase-auth';
143-
const oauthCredential = new OAuthProvider('apple.com');
144-
oauthCredential.credential(appleCredentialIdentityToken /* idToken */, rawNonce /* nonce */);
142+
import { AppleAuthProvider } from '@nativescript/firebase-auth';
143+
import { SignIn, User } from "@nativescript/apple-sign-in";
144+
145+
signIn(
146+
{
147+
scopes: ["EMAIL", "FULLNAME"]
148+
})
149+
.then((result: User) => {
150+
const oauthCredential = AppleAuthProvider.credential(result.identityToken, result.nonce);
151+
152+
firebase().auth().signInWithCredential(oauthCredential);
153+
})
154+
.catch(err => console.log("Error signing in: " + err));
145155

146-
firebase().auth().signInWithCredential(oauthCredential);
147156
```
148157

149158
#### Facebook

packages/firebase-auth/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-auth",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "NativeScript Firebase - Auth",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-core",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "NativeScript Firebase - Core",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-crashlytics/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-crashlytics",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "NativeScript Firebase - Crashlytics",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-database/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-database",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "NativeScript Firebase - Database",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-dynamic-links/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-dynamic-links",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "NativeScript Firebase - Dynamic Links",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-firestore/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-firestore",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "NativeScript Firebase - Firestore",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-functions/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-functions",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "NativeScript Firebase - Functions",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-in-app-messaging/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-in-app-messaging",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "NativeScript Firebase - In App Messaging",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-installations/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-installations",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "NativeScript Firebase - Installations",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-messaging/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-messaging",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "NativeScript Firebase - Messaging",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-performance/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-performance",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "NativeScript Firebase - Performancee",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-remote-config/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-remote-config",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "NativeScript Firebase - Remote Config",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-storage/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-storage",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "NativeScript Firebase - Storage",
55
"main": "index",
66
"typings": "index.d.ts",

0 commit comments

Comments
 (0)