jwt

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteTokeByToken

func DeleteTokeByToken(token string) error

* * DeleteTokeByToken * @param token string * @return error *

func DeleteToken

func DeleteToken(app, device, username string) error

* * DeleteToken * @param app, device, username string * @return error *

func GetKey

func GetKey(app, device, username string) string

* * GetTokenKey * @param app, device, username string * @return string *

func GetToken

func GetToken(key string) (string, error)

* * GetToken * @param key string * @return string, error *

func New

func New(app, device, username string, payload et.Json, duration time.Duration) (string, error)

* * New * @param app, device, username string, payload et.Json, duration time.Duration * @return string, error *

func NewAppTagToken

func NewAppTagToken(app, device, tag string, duration time.Duration) (string, error)

* * NewAppTagToken * @param app, device, tag string, duration time.Duration * @return string, error *

func NewAppToken

func NewAppToken(app, device string, duration time.Duration) (string, error)

* * NewAppToken * @param app, device string, duration time.Duration * @return string, error *

func NewAuthentication

func NewAuthentication(app, device, username string, duration time.Duration) (string, error)

* * NewAuthentication * @param app, device, username string, duration time.Duration * @return string, error *

func NewAuthorization

func NewAuthorization(app, device, username, tenantId, profileTp string, duration time.Duration) (string, error)

* * NewAuthorization * @param app, device, username, tenantId, profileTp string, duration time.Duration * @return string, error *

func NewEphemeralToken

func NewEphemeralToken(app, device, username string, payload et.Json, duration time.Duration) (string, error)

* * NewEphemeralToken * @param app, device, username string, duration time.Duration * @return string, error *

func SetToken

func SetToken(app, device, username, token string, duration time.Duration) error

* * SetToken * @param app, device, username, token string, duration time.Duration * @return error *

func Validate

func Validate(token string) (*claim.Claim, error)

* * Validate * @param token string * @return *Claim, error *

Types

This section is empty.

Jump to

Keyboard shortcuts

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