mirror of
https://github.com/amitshekhariitbhu/go-backend-clean-architecture.git
synced 2026-04-27 05:25:51 +03:00
[GH-ISSUE #22] Do we need separate functions for JWT verification and ID extraction? #14
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-backend-clean-architecture#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sreehari212000 on GitHub (Oct 31, 2025).
Original GitHub issue: https://github.com/amitshekhariitbhu/go-backend-clean-architecture/issues/22
Hey, I had a quick doubt, In
https://github.com/amitshekhariitbhu/go-backend-clean-architecture/blob/main/internal/tokenutil/tokenutil.gobothIsAuthorizedandExtractIDFromTokenfunctions are doing almost the same token parsing and validation. Wouldn’t it be better to combine them into one function that verifies and returns claims or ID? Or is there a particular reason for keeping them separate?