Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af138b3

Browse files
authored
Merge pull request #33 from firebase/kroikie-patch-1
Use consistent auth token variable
2 parents 3eabc65 + 72feb40 commit af138b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

installations/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ async function getInstallationId() {
2424
async function getAuthenticationToken() {
2525
try {
2626
// [START get_auth_token]
27-
const authToken = await firebase.installations()
27+
const installationToken = await firebase.installations()
2828
.getToken(/* forceRefresh */ true);
29-
console.log(authToken);
29+
console.log(installationToken);
3030
// [END get_auth_token]
3131
} catch (err) {
3232
console.error('Unable to get auth token: ', err);
@@ -44,4 +44,4 @@ async function setOnIdChangeHandler() {
4444
} catch (err) {
4545
console.error('Unable to set ID change handler: ', err);
4646
}
47-
}
47+
}

0 commit comments

Comments
 (0)