question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Shouldn’t those be serialized and sent to the client? Otherwise how will the client know when to update the token:

[JsonIgnore] public DateTime AccessExpiry { get; internal set; }

[JsonIgnore] public DateTime RefreshExpiry { get; internal set; }

Also, woudn’t it be better if DateTime was DateTimeOffset?

EDIT: Also, once i use the refresh token to get a new access token the new token does not seem to contain the claims. As far as i can tell everything has been set up properly inside SetRenewalPrivilegesAsync method. EDIT: After some testing it seems that the priviledges are only not working if you await something within SetRenewalPrivilegesAsync

Issue Analytics

  • State:closed
  • Created 8 months ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dj-nitehawkcommented, Jan 29, 2023

Refresh-Tokens-Demo.zip

check out this updated project. it’s simply a matter of adding a getter only (calculated) property to your derived class, which just transforms the datetime to whatever format the front-end client is capable of handling.

1reaction
dj-nitehawkcommented, Jan 28, 2023

thanks for the repro… it was a nasty bug which is now fixed in v5.6.0.6-beta thanks for reporting…

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Are Refresh Tokens and How to Use Them Securely
That is, a refresh token is a credential artifact that lets a client application get new access tokens without having to ask the...
Read more >
Understanding Refresh Tokens
A refresh token allows an application to obtain a new access token without prompting the user. Learn about the de facto standard for...
Read more >
What is the purpose of a "Refresh Token"?
Refresh Tokens are credentials used to obtain access tokens. Refresh tokens are issued to the client by the authorization server and are used...
Read more >
What is a Refresh Token - OAuth 2.0
An OAuth Refresh Token is a string that the OAuth client can use to get a new access token without the user's interaction....
Read more >
Refresh tokens in the Microsoft identity platform
The refresh token is used to obtain new access and refresh token pairs when the current access token expires. Refresh tokens are also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found