cli

package
v4.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

func GenerateToken(config jwtverify.VerifierConfig, user string, ttlSeconds int64) (string, error)

GenerateToken generates sample JWT for user.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL