Firebase admin sdk | Express Node.js | Reusing the token

preview_player
Показать описание
Hi everyone,

We will be sending the firebase auth token from Vue to our express API to make sure that the authenticated user is served securely.

Vue Setup Script
Рекомендации по теме
Комментарии
Автор

The docs on this topic are little confusing but your video cleared all the confusion. Thanks :)

theshubhagrwl
Автор

Thank you so much I'm so grateful too you

algorithmicbird
Автор

thank you. this video is extremely helpful

usama_khalid
Автор

el authVerifyMidleware no me return nothing

henrryrocajoffre
Автор

i don't understand what you showed is an authentication not reusing a token

calebbogale
Автор

hi thank you so much..
how could i get the email back, i want to store the user email in my own database (for example i want to make a relation between the users table with the post table) i have a route that is called when i signup in the frontend but i cant make this work, the docs says that i need to implement this but how would you do it?
getAuth()
.getUserByEmail(email)
.then((userRecord) => {
// See the UserRecord reference doc for the contents of userRecord.
console.log(`Successfully fetched user data: ${userRecord.toJSON()}`);
})
.catch((error) => {
console.log('Error fetching user data:', error);
});

obetreyes
Автор

After one hour I got this message, forceRefresh in getIdToken also didn't work

Uncaught Error: First argument to verifyIdToken() must be a Firebase ID token string.

ThanHtutZaw
visit shbcf.ru