Versions in this module Expand all Collapse all v0 v0.2.0 Feb 18, 2023 Changes in this version + func RefreshToken(alg src.SignAlgorithm, token string, cfg Config) (src.IToken, error) type Config + HMAC *HMACConfig + RSA *RSAConfig + type HMACConfig struct + Secret string + type RSAConfig struct + PrivateKey string + PublicKey string v0.1.0 Feb 18, 2023 Changes in this version + func BuildToken(alg src.SignAlgorithm, cfg Config) src.IToken + func HMAC() src.SignAlgorithm + func RSA() src.SignAlgorithm + type Claims struct + func ReverseHMACToken(token string, secret string) (*Claims, error) + func ReverseRSAToken(token string, path string) (*Claims, error) + type Config struct + Claims any + ExpiresAt int64 + Secret string