Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

getauth firebase admin node.js

const { initializeApp } = require('firebase-admin/app');
const { getAuth } = require('firebase-admin/auth');

const app = initializeApp();

const token = await getAuth().createCustomToken('alice');

const user = getAuth().getUser('bob');
Source by firebase.google.com #
 
PREVIOUS NEXT
Tagged: #getauth #firebase #admin
ADD COMMENT
Topic
Name
4+3 =