File tree Expand file tree Collapse file tree 3 files changed +117
-117
lines changed Expand file tree Collapse file tree 3 files changed +117
-117
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ admin.initializeApp({
1414// [END initialize_sdk_with_service_account_id]
1515
1616// [START custom_token]
17- var uid = 'some-uid' ;
17+ let uid = 'some-uid' ;
1818
1919admin . auth ( ) . createCustomToken ( uid )
2020 . then ( function ( customToken ) {
@@ -26,8 +26,8 @@ admin.auth().createCustomToken(uid)
2626// [END custom_token]
2727
2828// [START custom_token_with_claims]
29- var userId = 'some-uid' ;
30- var additionalClaims = {
29+ let userId = 'some-uid' ;
30+ let additionalClaims = {
3131 premiumAccount : true
3232} ;
3333
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ admin.initializeApp();
66// idToken comes from the client app
77admin . auth ( ) . verifyIdToken ( idToken )
88 . then ( function ( decodedToken ) {
9- var uid = decodedToken . uid ;
9+ let uid = decodedToken . uid ;
1010 // ...
1111 } ) . catch ( function ( error ) {
1212 // Handle error
You can’t perform that action at this time.
0 commit comments