From 0bfcbf17806a13421f9e498cf4bcf09c225843d2 Mon Sep 17 00:00:00 2001 From: Ersin Ertan <4809853+ersin-ertan@users.noreply.github.com> Date: Thu, 16 Dec 2021 13:30:15 -0500 Subject: [PATCH] Update method in comment for getting the id token Sources - https://github.com/firebase/firebase-js-sdk/blob/master/packages/auth/src/model/user.ts#L85 - https://firebase.google.com/docs/reference/js/v8/firebase.User#getidtoken - https://firebase.google.com/docs/reference/js/auth.user.md#usergetidtoken - https://firebase.google.com/docs/auth/web/manage-users#get_a_users_profile --- auth/manage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/manage.js b/auth/manage.js index 7163ef00..217199f2 100644 --- a/auth/manage.js +++ b/auth/manage.js @@ -16,7 +16,7 @@ function getUserProfile() { // The user's ID, unique to the Firebase project. Do NOT use // this value to authenticate with your backend server, if - // you have one. Use User.getToken() instead. + // you have one. Use User.getIdToken() instead. const uid = user.uid; } // [END auth_get_user_profile]