Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Help with integration with Firebase token #184

@leossmith

Description

@leossmith

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions