Open gudvinr opened 1 year ago
When you marshal oauth2.Token e.g. to JSON, resulting token can't be used in the same way anymore.
oauth2.Token
Fields embedded in raw field aren't going into JSON, thus when you unmarshal token back to oauth2.Token, you can't use Extra method to extract fields.
raw
Extra
Seems this is by design.
Could you elaborate please?
When you marshal
oauth2.Token
e.g. to JSON, resulting token can't be used in the same way anymore.Fields embedded in
raw
field aren't going into JSON, thus when you unmarshal token back tooauth2.Token
, you can't useExtra
method to extract fields.