Skip to content
This repository was archived by the owner on Jun 5, 2021. It is now read-only.
This repository was archived by the owner on Jun 5, 2021. It is now read-only.

Faulty JWT decoding #66

@msuret

Description

@msuret

The ID site sometimes displays this message:

The JWT claims section is malfomed and could not be decoded as JSON.

After some digging, it turns out that the funcion base64.atob in utils.js uses window.atob, which perform base64 decoding, whereas JWTs are encoded with base64url which use a slighty different alphabet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions