Skip to content

Invalid issuer (int instead of str) when creating a GitHub App token #1306

@8R0WNI3

Description

@8R0WNI3

To create a GitHub App token (e.g. as part of a login attempt as an app), the app_id (which is expected to be of type int) is used as iss (ref). However, since version 2.11.0 of the pyjwt package, the issuer must be of type str instead, otherwise the following error is raised:

TypeError: Issuer (iss) must be a string.

See jpadilla/pyjwt#1040 for more details on this change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions