Skip to content

Commit

Permalink
docs(auth): more correct example of error throw (#6051)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusZei authored Feb 6, 2022
1 parent 924a829 commit 471b4be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/auth/social-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async function onAppleButtonPress() {

// Ensure Apple returned a user identityToken
if (!appleAuthRequestResponse.identityToken) {
throw 'Apple Sign-In failed - no identify token returned';
throw new Error('Apple Sign-In failed - no identify token returned');
}

// Create a Firebase credential from the response
Expand Down

0 comments on commit 471b4be

Please sign in to comment.