minor fixes and doc improvements

This commit is contained in:
Nicola Murino
2021-09-18 10:50:17 +02:00
parent b5639a51fd
commit 6ea38188e8
9 changed files with 68 additions and 48 deletions

View File

@@ -71,6 +71,7 @@ func (c *jwtTokenClaims) asMap() map[string]interface{} {
}
func (c *jwtTokenClaims) Decode(token map[string]interface{}) {
c.Permissions = nil
username := token[claimUsernameKey]
switch v := username.(type) {