Hi,
I got a micro services arcitecture system where some micro services may "talk" to other ones.
Anyway, I made an authentication token validation on these microservices and by using firebase admin, I wonder how can I get the firebase authentication token so I can dispatch via HTTP Authorization Header?
I tried what's written on the firebase documentation but seems like it doesn't work:
var refreshToken; // Get refresh token from OAuth2 flow
admin.initializeApp({
credential: admin.credential.refreshToken(refreshToken),
databaseURL: "https://<DATABASE_NAME>.firebaseio.com"
});