diff --git a/token/jwt/claims.go b/token/jwt/claims.go index b15ee2a7c..6e0513f19 100644 --- a/token/jwt/claims.go +++ b/token/jwt/claims.go @@ -19,6 +19,12 @@ func ToString(i interface{}) string { return s } + if sl, ok := i.([]string); ok { + if len(sl) == 1 { + return sl[0] + } + } + return "" }