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.

# Constants

ClaimsKey is the context key for storing JWT claims in the request context.
TokenKey is the context key for storing the JWT token in the request context.

# Structs

Add a custom Claims structure to include internal role, external roles, and permissions.
No description provided by the author