Documentation ¶
Index ¶
- func AdminTokenMiddleware(token string) echo.MiddlewareFunc
- func GenerateAccessToken(secret []byte, expiryInSeconds int, u *models.User) (string, error)
- func GenerateRefreshToken(secret []byte, expiryInSeconds int, u *models.User) (string, error)
- func GetUserIdFromToken(secret []byte, token string) (int64, error)
- func Middleware(secret []byte) echo.MiddlewareFunc
- func ParseToken(secret []byte, token string, mustBeRefresh bool) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminTokenMiddleware ¶
func AdminTokenMiddleware(token string) echo.MiddlewareFunc
func GenerateAccessToken ¶
GenerateAccessToken : Generate Access Token
func GenerateRefreshToken ¶
GenerateRefreshToken : Generate Refresh Token
func Middleware ¶
func Middleware(secret []byte) echo.MiddlewareFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.