I have used this in the past to authenticate using my own JWT, but now i want to use the Firebase token for users. I have tried multiple things, without any luck. This is my code:
$app->add(new Tuupola\Middleware\JwtAuthentication([
"ignore" => ["/users/register","/users/activate","/users/login",
"/users/requestPasswordReset","/users/passwordReset",
"/admins/login"],
"header" => 'X-Authorization',
"secret" => $secrets,
"algorithm" => ["RS256"]
]));
But it keeps going to 401 not authorized. Do you have an example using Firebase Auth for authentication?
Thank you.
Using Php Slim 4