Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractToken ¶ added in v1.4.0
ExtractToken extracts the JWT token from the header.
func MakeProjectHandlers ¶
MakeProjectHandlers make url handlers for creating, updating, deleting, and getting projects
func TokenValid ¶ added in v1.4.0
TokenValid checks if a JWT token is valid.
Types ¶
type AccessDetails ¶ added in v1.4.0
type AccessDetails struct {
UserId string
}
func ExtractTokenMetadata ¶ added in v1.4.0
func ExtractTokenMetadata(r *http.Request) (*AccessDetails, error)
ExtractTokenMetadata extracts the data contained within the JWT token and returns an AccessDetails object.
Click to show internal directories.
Click to hide internal directories.