Skip to content

Commit

Permalink
Fix error "provider.credential is not a function" (expo#18527)
Browse files Browse the repository at this point in the history
Co-authored-by: Aman Mittal <amandeepmittal@live.com>
  • Loading branch information
2 people authored and Ddv0623 committed Sep 26, 2022
1 parent a19e544 commit 34514d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/pages/guides/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -1181,8 +1181,7 @@ export default function App() {

/* @info Create a Google credential with the <code>id_token</code> */
const auth = getAuth();
const provider = new GoogleAuthProvider();
const credential = provider.credential(id_token);
const credential = GoogleAuthProvider.credential(id_token);
/* @end */
signInWithCredential(auth, credential);
}
Expand Down

0 comments on commit 34514d7

Please sign in to comment.