Skip to content

Commit

Permalink
docs(authentication): add missing await (#573)
Browse files Browse the repository at this point in the history
* Fixing a persistence  error

* Update README.md

Restored extra whitespace symbols as was requested on PR
  • Loading branch information
bitekas authored Mar 1, 2024
1 parent 4d21118 commit 4ca16a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/authentication/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const getCurrentUser = async () => {
};

const getIdToken = async () => {
const currentUser = getCurrentUser();
const currentUser = await getCurrentUser();
if (!currentUser) {
return;
}
Expand All @@ -171,7 +171,7 @@ const getIdToken = async () => {
};

const sendEmailVerification = async () => {
const currentUser = getCurrentUser();
const currentUser = await getCurrentUser();
if (!currentUser) {
return;
}
Expand Down Expand Up @@ -342,7 +342,7 @@ const signOut = async () => {
};

const updateEmail = async () => {
const currentUser = getCurrentUser();
const currentUser = await getCurrentUser();
if (!currentUser) {
return;
}
Expand All @@ -352,7 +352,7 @@ const updateEmail = async () => {
};

const updatePassword = async () => {
const currentUser = getCurrentUser();
const currentUser = await getCurrentUser();
if (!currentUser) {
return;
}
Expand Down

0 comments on commit 4ca16a6

Please sign in to comment.