Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marshalling Token produces incompatible token #670

Open
gudvinr opened this issue Sep 23, 2023 · 2 comments
Open

Marshalling Token produces incompatible token #670

gudvinr opened this issue Sep 23, 2023 · 2 comments

Comments

@gudvinr
Copy link

gudvinr commented Sep 23, 2023

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.

@andig
Copy link

andig commented Oct 2, 2023

Seems this is by design.

@0xGar
Copy link

0xGar commented Oct 19, 2023

Seems this is by design.

Could you elaborate please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants