Skip to content
This repository was archived by the owner on Dec 7, 2023. It is now read-only.
This repository was archived by the owner on Dec 7, 2023. It is now read-only.

Find convenient way of casting decoded JWTs #536

Description

@Nydauron

As per #535, it introduced a new function utils.FetchIdFromSignedUserToken() which has some amount of duplicate code compared to say utils.ExtractFieldFromJWT(). The main differences include it casting to a string rather than a []string.

Question to ask is it worth the effort of reducing duplication for this small amount of code?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions