Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPermits ¶
CheckPermits cheks if the user is trying to perform and action on his own account or not. If true, return an error.
func GenerateFixedJWT ¶
GenerateFixedJWT creates a jwt token that does not vary.
func GenerateJWT ¶
GenerateJWT creates a new jwt token - changes over time -.
func ParseFixedJWT ¶
ParseFixedJWT takes the claims from the token and returns the id value. This function is used to take the user id value from the UID cookie.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.