auth

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateLivekitAccessToken

func GenerateLivekitAccessToken(apiKey, secret string, tokenValidity time.Duration, c *plugnmeet.PlugNmeetTokenClaims) (string, error)

func GeneratePlugNmeetJWTAccessToken

func GeneratePlugNmeetJWTAccessToken(apiKey, secret, userId string, tokenValidity time.Duration, c *plugnmeet.PlugNmeetTokenClaims) (string, error)

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.

Jump to

Keyboard shortcuts

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