Skip to content

Commit

Permalink
chore(auth): update apple login info
Browse files Browse the repository at this point in the history
  • Loading branch information
triniwiz committed Mar 12, 2022
1 parent 8b3026f commit 4378cfb
Show file tree
Hide file tree
Showing 17 changed files with 29 additions and 20 deletions.
2 changes: 1 addition & 1 deletion packages/firebase-admob/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-admob",
"version": "1.0.5",
"version": "1.0.6",
"description": "NativeScript Firebase - Admob",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-analytics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-analytics",
"version": "1.0.5",
"version": "1.0.6",
"description": "NativeScript Firebase - Analytics",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-app-check/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-app-check",
"version": "1.0.5",
"version": "1.0.6",
"description": "NativeScript Firebase - App Check",
"main": "index",
"typings": "index.d.ts",
Expand Down
17 changes: 13 additions & 4 deletions packages/firebase-auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,20 @@ Next, ensure that your app have the "Sign in with Apple" capability.

```ts
import { firebase } from '@nativescript/firebase-core';
import { OAuthProvider } from '@nativescript/firebase-auth';
const oauthCredential = new OAuthProvider('apple.com');
oauthCredential.credential(appleCredentialIdentityToken /* idToken */, rawNonce /* nonce */);
import { AppleAuthProvider } from '@nativescript/firebase-auth';
import { SignIn, User } from "@nativescript/apple-sign-in";

signIn(
{
scopes: ["EMAIL", "FULLNAME"]
})
.then((result: User) => {
const oauthCredential = AppleAuthProvider.credential(result.identityToken, result.nonce);

firebase().auth().signInWithCredential(oauthCredential);
})
.catch(err => console.log("Error signing in: " + err));

firebase().auth().signInWithCredential(oauthCredential);
```

#### Facebook
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-auth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-auth",
"version": "1.0.5",
"version": "1.0.6",
"description": "NativeScript Firebase - Auth",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-core",
"version": "1.0.5",
"version": "1.0.6",
"description": "NativeScript Firebase - Core",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-crashlytics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-crashlytics",
"version": "1.0.5",
"version": "1.0.6",
"description": "NativeScript Firebase - Crashlytics",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-database/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-database",
"version": "1.0.5",
"version": "1.0.6",
"description": "NativeScript Firebase - Database",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-dynamic-links/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-dynamic-links",
"version": "1.0.5",
"version": "1.0.6",
"description": "NativeScript Firebase - Dynamic Links",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-firestore/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-firestore",
"version": "1.0.5",
"version": "1.0.6",
"description": "NativeScript Firebase - Firestore",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-functions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-functions",
"version": "1.0.5",
"version": "1.0.6",
"description": "NativeScript Firebase - Functions",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-in-app-messaging/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-in-app-messaging",
"version": "1.0.5",
"version": "1.0.6",
"description": "NativeScript Firebase - In App Messaging",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-installations/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-installations",
"version": "1.0.5",
"version": "1.0.6",
"description": "NativeScript Firebase - Installations",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-messaging/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-messaging",
"version": "1.0.5",
"version": "1.0.6",
"description": "NativeScript Firebase - Messaging",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-performance/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-performance",
"version": "1.0.5",
"version": "1.0.6",
"description": "NativeScript Firebase - Performancee",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-remote-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-remote-config",
"version": "1.0.5",
"version": "1.0.6",
"description": "NativeScript Firebase - Remote Config",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-storage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/firebase-storage",
"version": "1.0.5",
"version": "1.0.6",
"description": "NativeScript Firebase - Storage",
"main": "index",
"typings": "index.d.ts",
Expand Down

0 comments on commit 4378cfb

Please sign in to comment.