handle new UpdateParticipant API, enable permission updates

This commit is contained in:
David Zhao
2021-03-20 22:27:47 -07:00
parent 6aee50b397
commit 537edda4c3
14 changed files with 387 additions and 423 deletions
+1 -6
View File
@@ -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()