Skip to content

Library doesn't really work for refresh tokens #64

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

Open
sherlock1982 opened this issue Apr 4, 2024 · 1 comment
Open

Library doesn't really work for refresh tokens #64

sherlock1982 opened this issue Apr 4, 2024 · 1 comment

Comments

@sherlock1982
Copy link

When I call AcquireTokenByAuthorizationCode with ConfidentialClientApplication I got a refresh token.

It doesn't have any expiration info and therefore DistributedCacheEntryOptions parameters comes with all nulls.
The code in GetOptions puts there default sliding expiration time of 20 minutes.

This is wrong because this token generally should be treated as never expired.

@leonibr
Copy link
Owner

leonibr commented Apr 23, 2024

Can you provide more context? I can't see any relation between OAuth token and this library, I am not sure I understand the issue

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