Skip to content

Commit

Permalink
update firebase docs
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley committed Dec 9, 2019
1 parent dd3f242 commit f82ac5e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/FIREBASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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],
});

Expand Down

0 comments on commit f82ac5e

Please sign in to comment.