Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractBearer ¶
ExtractBearer strips the Bearer prefix from an Authorization header value.
func WithBearer ¶
WithBearer stores a raw bearer token in context.
Types ¶
type UserInfo ¶
UserInfo carries minimal identity extracted from a bearer token.
func DecodeUserInfo ¶
DecodeUserInfo parses a JWT token payload without verifying signature and extracts common identity fields (email, sub). It returns nil when parsing fails or when no useful claims are present.
Click to show internal directories.
Click to hide internal directories.