Versions in this module Expand all Collapse all v0 v0.3.1 Sep 21, 2023 Changes in this version + func CheckJWTFromCookie(reqID uint64, cookie *http.Cookie, jwtKey []byte) error + func CreateJWT(claims *Claims, expirationTime *time.Time, jwtKey []byte) (string, error) + func CreateJWTCookie(claims *Claims, jwtExpiresAt int, jwtKey []byte) (*http.Cookie, error) + type Claims struct + Username string + func CheckJWT(reqID uint64, tknStr string, jwtKey []byte) (*Claims, error)