All Questions
8 questions
0
votes
1
answer
127
views
Can Firebase Auth custom claims in JWT tokens be tampered with in onCall functions?
I’m developing a serverless backend using Firebase products, and my endpoints are implemented as onCall cloud functions (v2). I’ve created a middleware function to ensure that only authenticated users ...
1
vote
1
answer
90
views
Make authenticated request from React to Express api deployed in Firebse function
I had very simple Firebase authentication in a React app
export const register = async (
email: string,
password: string,
) => {
try {
return await createUserWithEmailAndPassword(auth, ...
2
votes
0
answers
1k
views
How to get ID Token in Firebase Cloud Functions
I need to access user.getIdToken() from firebase cloud functions. I am creating a user like so:
exports.addUser = functions.auth
.user()
.onCreate((user: admin.auth.UserRecord) =>
admin....
2
votes
2
answers
1k
views
Firebase createCustomToken() returns an invalid token in local emulators
I am using firebase authentication to handle user accounts for my web application. When a user enters valid login credentials I am using the firebase admin SDK to generate a JWT in a cloud function, ...
0
votes
0
answers
275
views
How can I Authenticate Users on Firebase with an OAuth Implicit Grant Access Token Generated by a Wordpress Plugin?
I have an Angular App which connects to my Wordpress site for authentication. I use the free wordpress plugin from https://wordpress.org/plugins/oauth2-provider/ to validate if a user is signed in to ...
2
votes
1
answer
2k
views
Firebase Auth setCustomClaims() not working
I am facing a problem with setting custom claims for Firebase Authentication service's token. I am using Cloud function to set the custom claims for Hasura. The cloud function executes upon new user ...
11
votes
2
answers
12k
views
Setting custom claims for Firebase auth from flutter
I'm using Firebase auth for an app, but as part of user creation I need to set some custom claims.
I've written a cloud function to set the claims when a user is created:
const functions = ...
2
votes
1
answer
2k
views
Firebase admin sdk unable to decode jwt token
I have written api in node using express and hosted it on firebase functions. I am trying to secure the api using firebase authentication.
After the user has logged into my android application using ...