mirror of
https://github.com/livekit/livekit.git
synced 2026-05-22 19:16:05 +00:00
handle new UpdateParticipant API, enable permission updates
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package commands
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/urfave/cli/v2"
|
||||
@@ -81,11 +80,7 @@ func createToken(c *cli.Context) error {
|
||||
at := accessToken(c, grant, p)
|
||||
|
||||
if metadata != "" {
|
||||
var md map[string]interface{}
|
||||
if err := json.Unmarshal([]byte(metadata), &md); err != nil {
|
||||
return err
|
||||
}
|
||||
at.SetMetadata(md)
|
||||
at.SetMetadata(metadata)
|
||||
}
|
||||
|
||||
token, err := at.ToJWT()
|
||||
|
||||
Reference in New Issue
Block a user