I'm trying to implement authentication with custom generated tokens.
These tokens are generated on the authentication server when authentication is successful.
I then pass said token to my Firebase app with
firebase.auth().signInWithCustomToken(token)
and get a 400 response with this error message:
The custom token format is incorrect
As I said these tokens are generated independently from Firebase and, from reading here, I think that's my problem.
My question: is it possible to set custom token authentication without setting up the service account private key on the authentication server?