Documentation
¶
Index ¶
- func GenerateLivekitAccessToken(apiKey, secret string, tokenValidity time.Duration, ...) (string, error)
- func GeneratePlugNmeetJWTAccessToken(apiKey, secret, userId string, tokenValidity time.Duration, ...) (string, error)
- func GenerateTokenForDownloadRecording(path, apiKey, apiSecret string, tokenValidity time.Duration) (string, error)
- func VerifyPlugNmeetAccessToken(apiKey, secret, token string, gracefulPeriod time.Duration) (*plugnmeet.PlugNmeetTokenClaims, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTokenForDownloadRecording ¶
func GenerateTokenForDownloadRecording(path, apiKey, apiSecret string, tokenValidity time.Duration) (string, error)
GenerateTokenForDownloadRecording will generate token path format: sub_path/roomSid/filename
func VerifyPlugNmeetAccessToken ¶
func VerifyPlugNmeetAccessToken(apiKey, secret, token string, gracefulPeriod time.Duration) (*plugnmeet.PlugNmeetTokenClaims, error)
VerifyPlugNmeetAccessToken can be use to verify plugNmeet access token gracefulPeriod allows a token to be considered valid for this duration past its original expiration time. A value of 0 means no graceful period (strict expiration). NotBefore (nbf) validation is always strict against the current time.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.