Skip to content

Failed to login using JWT from Firebase #287

@leossmith

Description

@leossmith

I am working on a PHP Slim 4 API, which should use the token coming from Firebase authentication to access the api. However I keep getting this error in my logs no matter what:

OpenSSL error: error:0906D06C:PEM routines:PEM_read_bio:no start line [" TOKEN_FROM_FIREBASE "]

and this is the response to my GET:

{
    "statusCode": 500,
    "error": {
        "type": "SERVER_ERROR",
        "description": "ERROR: openssl_verify(): supplied key param cannot be coerced into a public key on line 243 in file E:\\xampp\\htdocs\\playground\\my-api\\vendor\\firebase\\php-jwt\\src\\JWT.php."
    }
}

Any ideas?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions