Documentation ¶
Index ¶
- func CheckSubToken(config jwtverify.VerifierConfig, ruleConfig rule.Config, t string) (string, string, []byte, error)
- func CheckToken(config jwtverify.VerifierConfig, ruleConfig rule.Config, t string) (string, []byte, error)
- func GenerateSubToken(config jwtverify.VerifierConfig, user string, channel string, ttlSeconds int64) (string, error)
- func GenerateToken(config jwtverify.VerifierConfig, user string, ttlSeconds int64) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSubToken ¶
func CheckSubToken(config jwtverify.VerifierConfig, ruleConfig rule.Config, t string) (string, string, []byte, error)
CheckSubToken checks subscription JWT for user.
func CheckToken ¶
func CheckToken(config jwtverify.VerifierConfig, ruleConfig rule.Config, t string) (string, []byte, error)
CheckToken checks JWT for user.
func GenerateSubToken ¶
func GenerateSubToken(config jwtverify.VerifierConfig, user string, channel string, ttlSeconds int64) (string, error)
GenerateSubToken generates sample subscription JWT for user.
func GenerateToken ¶
GenerateToken generates sample JWT for user.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.