Skip to content

Verify JWT Auth0 #62

@michieldewilde

Description

@michieldewilde

When verifying the JSON Web Token the secret has to be passed as a Base64 encoded string.

jwt.verify(token, new Buffer(AUTH0_CLIENT_SECRET, 'base64'));

But since december 2016 Auth0 no longer stores client Secret with Base64 encoding (https://auth0.com/forum/t/client-secret-stored-without-base64-encoding).
So the JSON Web Token can be passed as string without being encoded.

jwt.verify(token, AUTH0_CLIENT_SECRET);

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