Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TokenIssuer ¶
type TokenIssuer interface { // IssueToken generates JSON Web Token based on the provided subject, audiences, duration and claims. // It returns the token and its expiration time if successfully generated IssueToken(sub string, aud []string, duration int64, claims ...any) (string, *time.Time, error) }
TokenIssuer is an interface for JSON Web Token issuers.
Click to show internal directories.
Click to hide internal directories.