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

Find convenient way of casting decoded JWTs #536

Open
Nydauron opened this issue Feb 8, 2023 · 0 comments
Open

Find convenient way of casting decoded JWTs #536

Nydauron opened this issue Feb 8, 2023 · 0 comments
Labels

Comments

@Nydauron
Copy link
Contributor

Nydauron commented Feb 8, 2023

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant