In sessions.AuthenticateWithClaims you use mapstructure to decode the custom claims into the object.
The call you are using doesn't respect a type implementing the json.Unmarshaler interface. Ideally you would use the standard json library for this, but I understand that it's difficult to implement (may need to unmarshal twice or something). The alternative is to add a DecodeHook to your mapstructure config which handles types which implement json.Unmarshaler
In
sessions.AuthenticateWithClaimsyou use mapstructure to decode the custom claims into the object.The call you are using doesn't respect a type implementing the
json.Unmarshalerinterface. Ideally you would use the standard json library for this, but I understand that it's difficult to implement (may need to unmarshal twice or something). The alternative is to add a DecodeHook to your mapstructure config which handles types which implementjson.Unmarshaler