Minting Custom Tokens with the Admin SDK for Node.js - Firecasts

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

Links:

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

I would kill for a working git example for these tutorials, here is code:
const admin = require('firebase-admin')
const serviceAccount =
admin.initializeApp({
credential:
});

const uid = 'some-uid'
const additionalClaims = {
premiumAccount: true
};

admin.auth().createCustomToken(uid, => {
//Send back to client
console.log(customToken)
}).catch((error) => {
console.log('Error creating custom token:', error)
})

christiangao
Автор

Is it possible to do a video on Cloud Function for Push Notifications on top of Custom Firebase Analytics events please ? I would love to trigger a custom login event and thereafter schedule an auto-push notfication by utilzing a cloud function for the latter event. Such a video would be extremely helpful!

dirkb
Автор

How could I do this configuration in my Angular project?

juanjolopez
Автор

I am following these steps but the user isn't created when running index.js, although the token is generated. Did something change?

marcusmarcus
Автор

I love Firebase, it's so convenient

DodaGarcia
Автор

does the claim gets injected by a cloud function that checks if the user for example has paid for the alleged premium?

Richard.halabi
Автор

Can I use jQuery Ajax to access Google Cloud Storage with JWT?

a
Автор

Cloud Functions SDK can't delete storage data from urlLink?

lukecross
Автор

How to auto login using custom token on firebase in Swift because when you leave the app the user is logged in but we cannot retrieve its data?

yoanbele
Автор

I am connecting esp8266 with Android studio with connect to firebase option in firebase.but i want to access firebase by firebase real database url and secrete key that write in two text box and connect automatically to firebase or any method tell me please

talhaijazprojectlimited
Автор

Thanks for the video! Would it be possible to Sign up and login using only mobile numbers and OTP using this method?

raghav
Автор

What if I want to use angular as front end, rest everything remains the same?

HimanshuKumar-xztk
Автор

Hello hoping someone can help me, Im new to firebase and programming over all...even though I downloaded my .json file with credentials, it is stored in my desktop...when I retrieve at the servieAccount the ubication ("C:/User/Desktop/xxx.json" the following error appears:


Error: Firebase: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp() (app/no-app)


It seems in the video that the .json file is added to the project directory, is this mandatory for it to work? If it is, as stupid as it sounds, how can i move the file in Windows Powershell?


If its no the problem, can someone help?

juanpabloacostalopez
Автор

Is there a way to use Firebird Admin JWT resources, where my users can access my apps, only with email or phone without external libs in a secure way. Where I find some tutorial on, preferably with React

alexon
Автор

do we keep copying and pasting custom tokens

grafterallday
Автор

Is it possible to authenticate to Firebase using a Openid 2.0 provider? I would like to use Steam as a login provider :(

SEGVeenstra
Автор

One might expect that the value of generating a custom token is that you can use it to authenticate at your own service as well as in firebase. If I use the Firebase auth().createCustomToken method, how do I validate within my non-firebase services? ie, what is the secret we are using -- is it only/exactly the details in the serviceAccount json file? Or, is the intent that we keep a pairwise mapping of user/service token to user/firebase tokens in our services?

robertotomas
Автор

how can I make login password for admin?

manishbatra
Автор

Is there anybody come across the problem that "code index.js" doesn't work ??

ahmetmsenturk
Автор

please let us know how to mint a refresh token

mani