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

adal.token.EnsureFresh threw unmarshal error on expires_on field #696

Closed
northtyphoon opened this issue May 17, 2022 · 1 comment
Closed

Comments

@northtyphoon
Copy link
Member

The following code tried to decode an int field (expires_on) to string and threw error.

ExpiresOn string `json:"expires_on"`

'json: cannot unmarshal number into Go struct field .expires_on of type string' JSON = '{"access_token":"","refresh_token":"","expires_in":86399,"expires_on":1652886678,"not_before":1652799978,"resource":"https://management.azure.com/","token_type":"Bearer"}'

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

2 participants