package
0.0.0-20250204031522-4f75e4dd0f78
Repository: https://github.com/piccolomondoc/sg-common.git
Documentation: pkg.go.dev
# Functions
ExtractToken removes "Bearer " prefix from Authorization header.
GetSubject extracts the subject (user ID) from a JWT token.
IsValidJWT is a custom validator to check if the provided string is a valid JWT token.
Parse function validates and extracts the JWT claims.