All Questions
83 questions
0
votes
2
answers
119
views
How to shorten the expiration time on Firebase auth tokens for login session?
I am trying to test my refresh token logic using Firebase auth but waiting an hour for it to expire is maddening. The documentation doesn't seem to mention anything about customizing the time: https://...
0
votes
0
answers
29
views
Firebase Authentication incorrectly invalidating tokens generated with signInWithEmailAndPassword
I am developing a system, and I'm currently handling the authentication of users. Here, I'd like users to sign in with their email and password using Firebase. Using the user credentials generated ...
0
votes
1
answer
47
views
Turn off sending verificaiton email when creating user
I am using firebase authentication in my react-native app developing.
When I create user using firebase authentication, firebase sends verification email automatically.
But I want firebase not to send ...
0
votes
1
answer
207
views
Firebase custom token in NodeJS (fastify framework)
I would like to create a custom token from my fastify server.
Now, I am reading the following, exceptionally poor, guide:
https://firebase.google.com/docs/auth/admin/create-custom-tokens
They have ...
0
votes
1
answer
626
views
Error trying to get firebase authentication. Cannot read properties of undefined (reading 'getProvider')
I am trying to create a user in firebase using its getAuth() command. When I start my Node.js server side code I get an error:
TypeError: Cannot read properties of undefined (reading 'getProvider') at ...
0
votes
1
answer
80
views
How do I access Firebase Tenants from a Vue app or Firebase Cloud Functions?
The Firebase multi tenant authentication docs include examples on how to work with Tenants in Node.js but I'm still learning and I don't understand how this can be done in Cloud Functions.
function ...
3
votes
0
answers
180
views
Firebase verifyIdToken "auth/argument-error" (ETIMEDOUT)
I rarely require to ask a question here but I can't figure out what is going on with my code.
I have a web app where users login with firebase auth and a server that verify tokenId and retrieve the ...
0
votes
0
answers
20
views
Firebase locally is pointing to cloud
I created a nodejs/express backend app and I added firebase-admin to just validate if the user is logged in in the frontend.
The login logic is from firebase too, but is managed in the frontend.
So, ...
0
votes
1
answer
214
views
How to fix "admin.auth(...).sendPasswordResetEmail is not a function" Firebase
const express = require('express');
const router = express.Router();
const admin = require('firebase-admin');
console.log('Entrou no resetPasswordRoutes.js');
// Rota para enviar o e-mail de ...
0
votes
1
answer
274
views
firebase authenticating requests using service account with admin sdk
I am trying to authenticate a server application from a third party using a token generated in my backend using the admin SDK with a service account. For testing purposes, I try to use Postman for the ...
0
votes
1
answer
111
views
From a list of emails, how to find with the Firebase Admin SDK the ones that belong to existing users in the Auth Service?
I have an array of emails and I want, with the Admin SDK (for example in a Cloud Function), to find which emails belong to users in the Firebase Auth Service.
I know that we can use the getUserByEmail(...
1
vote
2
answers
1k
views
Is it good practice to use firebase-admin-sdk and firebase-ui + firebase-client-sdk together to handle servver-side and client-side authentication?
I am trying to create auth mechanism for my Next.js project. Mainly, I want to use firebase-auth and firestore. I want to have important logic on server side for security reasons. I don't want to ...
0
votes
2
answers
299
views
Getting Firebase Client Config key/values from within Firebase Admin backend?
Context:
Backend gets firebase client config key/values (apiKey, authDomain, etc) and passes it to client
Client uses said config to set which Firebase App it initializes into
Node backend
I've been ...
1
vote
1
answer
443
views
Is it safe to store a firebase user authentication token without user specific security rules in firebase realtime database?
I am adding firebase Google OAuth to my Electron app - I have followed this tutorial: https://pragli.com/blog/how-to-authenticate-with-google-in-electron/.
The general idea is to launch the Electron ...
10
votes
0
answers
266
views
firebaseAdmin.auth().getUser(uid) being extremely slow recently
Starting around October firebaseAdmin.auth().getUser(uid) is having an extremely slow response time - often reaching more than 60 secs and even more - and then it returns back to normal.
My first ...