oauth2 icon indicating copy to clipboard operation
oauth2 copied to clipboard

Marshalling Token produces incompatible token

Open gudvinr opened this issue 9 months ago • 2 comments

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 to oauth2.Token, you can't use Extra method to extract fields.

gudvinr avatar Sep 23 '23 14:09 gudvinr

Seems this is by design.

andig avatar Oct 02 '23 11:10 andig

Seems this is by design.

Could you elaborate please?

0xGar avatar Oct 19 '23 11:10 0xGar