Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7983297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:55:22+00:00 2026-06-04T10:55:22+00:00

I have to confess I’ve had this question for a very long time and

  • 0

I have to confess I’ve had this question for a very long time and never really understood.

Say an auth token is like a key to a safe; when it expires it’s not usable anymore. Now we’re given a magic refresh token, which can be used to get another usable key, and another… until the magic key expires. So why not just set the expiration of the auth token as the same as refresh token? Why bother at all?

What’s the reason for it? Is it a historical one?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T10:55:23+00:00Added an answer on June 4, 2026 at 10:55 am

    The referenced answer (via @Anders) is helpful, It states:

    In case of compromise, the time window it’s valid for is limited, but
    the tokens are used over SSL, so unlikely to be compromised.

    I think the important part is that access tokens will often get logged (especially when used as a query parameter, which is helpful for JSONP), so it’s best for them to be short-lived.

    There are a few additional reasons, with large-scale implementations of OAuth 2.0 by service providers:

    1. API servers can securely validate access tokens without DB lookups or RPC calls if it’s okay to not worry about revocation. This can have strong performance benefits and lessen complexity for the API servers. Best if you’re okay with a token revocation taking 30m-60m (or whatever the length of the access token is). Of course, the API servers could also keep an in-memory list of tokens revoked in the last hour too.

    2. Since tokens can have multiple scopes with access to multiple different API services, having short-lived access tokens prevents a developer of API service for getting a lifelong access to a user’s data on API service B. Compartmentalization is good for security.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I confess I'm having a really bad time here. I have a C program
Ok, this is really difficult to confess, but I do have a strong temptation
have written this little class, which generates a UUID every time an object of
I'm unable to read regex. Let's say we have this string: mydomain.bu.pu and I
I have to confess that I hate membership provider. The default implementation is not
have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:
I should confess I do not even own a Mac, I have done Windows
UPDATE: In trying to replicate this problem one more time to answer your questions
So, my problem is this. I have a legacy MySQL database that I'm building
This is a very simple example where accessing directly could be dangerous class Something{

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.