From f82ac5ede15881d0cbcb9340ee0ead3e7e5d5fcb Mon Sep 17 00:00:00 2001 From: "russellwheatley85@gmail.com" Date: Mon, 9 Dec 2019 13:11:44 +0000 Subject: [PATCH] update firebase docs --- docs/FIREBASE.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/FIREBASE.md b/docs/FIREBASE.md index 80e0b526e..e7ffdee21 100644 --- a/docs/FIREBASE.md +++ b/docs/FIREBASE.md @@ -22,7 +22,11 @@ The `@invertase/react-native-apple-authentication` library will not work if you import React from 'react'; import { View } from 'react-native'; import { firebase } from '@react-native-firebase/auth'; -import appleAuth, { AppleButton } from '@invertase/react-native-apple-authentication'; +import appleAuth, { + AppleButton, + AppleAuthRequestScope, + AppleAuthRequestOperation + } from '@invertase/react-native-apple-authentication'; /** * Note the sign in request can error, e.g. if the user cancels the sign-in. @@ -31,6 +35,7 @@ import appleAuth, { AppleButton } from '@invertase/react-native-apple-authentica async function onAppleButtonPress() { // 1). start a apple sign-in request const appleAuthRequestResponse = await appleAuth.performRequest({ + requestedOperation: AppleAuthRequestOperation.LOGIN, requestedScopes: [AppleAuthRequestScope.EMAIL, AppleAuthRequestScope.FULL_NAME], });