Documentation ¶
Overview ¶
Package jwtauth contains JWT-related helpers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAPIAccessToken ¶
func BuildAPIAccessToken(sdkKey string, ttl time.Duration, key []byte) (tokenString string, expires int64, err error)
BuildAPIAccessToken returns a token for accessing the API service using the argument SDK key and TTL. It also returns the expiration timestamp.
func BuildAdminAccessToken ¶
func BuildAdminAccessToken(ttl time.Duration, key []byte) (tokenString string, expires int64, err error)
BuildAdminAccessToken returns a token for accessing the Admin service using the argument TTL. It also returns the expiration timestamp.
func MatchClientSecret ¶
MatchClientSecret compares secret keys
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.