Open Closed

Extend accesstokenlifetime #9290


User avatar
0
FPT_TuyenDN1 created

**"When I log in, the system generates an access token with an expiration date set to 1 year, as shown in the log below: However, it doesn't seem to work correctly. It looks like the default token lifetime is still set to 1 hour. After 1 hour, I lose authorization and have to log in again. I’ve configured the AccessTokenLifetime like this: and I also set it in the admin page like this: I want the token to remain valid for 1 year. How can I make this work?


4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    It looks like the default token lifetime is still set to 1 hour. After 1 hour, I lose authorization and have to log in again.

    Can you enable the debug logs(Verbose for openiddict)?

    https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems

  • User Avatar
    0
    FPT_TuyenDN1 created

    hi

    It looks like the default token lifetime is still set to 1 hour. After 1 hour, I lose authorization and have to log in again.

    Can you enable the debug logs(Verbose for openiddict)?

    https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems

    Hi How can i send log to you?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    liming.ma@volosoft.com

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The logs don't show any authorization error. Do you have an API website?

    Please share the API logs(please ShowPII and output identity model logs.).

    Thanks.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on June 13, 2025, 11:37