question

jraymer1028 avatar image
jraymer1028 asked wm1 answered

New Expiring Tokens - Expiration Times

I am working with the new expiring tokens in the Sandbox for now. It looks like the new tokens expire after 30 minutes. Is that right? I am not hardcoding the expirations but just trying to get an idea of how long they last or how often I should check for tokens that are due to expire.

access token
2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

lilly45 avatar image lilly45 commented ·

When implementing new expiring tokens, determining the expiration times involves careful consideration of security, usability, and operational needs. Shorter expiration times, typically ranging from minutes to an hour, are often chosen for sensitive operations requiring frequent re-authentication to minimize the risk of fruit roll up ingredients unauthorized access. Medium-term tokens, lasting several hours to a day, balance security with user convenience, allowing longer sessions without compromising security significantly. Longer-lived tokens, spanning days or weeks, may be appropriate for applications where frequent re-authentication is impractical, prioritizing user convenience while managing associated risks.

0 Likes 0 ·
jerryturner avatar image jerryturner commented ·
  1. Setting Expiration Times:

    • Configuration: Define expiration times based on the security requirements and the sensitivity of the resources being protected.rslhelper.com
    • Balance: Ensure a balance between user convenience and security. Too short an expiration time might inconvenience users, while too long might pose a security risk.
  2. Token Renewal:

    • Access Token Renewal: Use refresh tokens to obtain new access tokens without requiring the user to log in again.
    • Session Management: Implement session timeout and renewal policies to maintain a secure and user-friendly experience.
  3. Handling Expired Tokens:

    • Token Validation: Always validate tokens on the server-side to check if they are expired or invalid.
    • Error Handling: Provide clear error messages and prompts for users to re-authenticate if their tokens are expired.
  4. Token Storage:

    • Secure Storage: Store tokens securely on the client-side, typically in secure cookies or local storage, depending on the application requirements.
    • Transmission Security: Ensure tokens are transmitted over secure channels (e.g., HTTPS) to prevent interception.


0 Likes 0 ·
tonyadams avatar image
tonyadams answered wm1 commented

You're on the right track! In the Sandbox environment, new expiring tokens typically have a shorter lifespan than production. 30 minutes is a common estimate for some platforms' expiration time of access tokens in the Sandbox. Retro Bowl College

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jraymer1028 avatar image jraymer1028 commented ·
My real question is if Production tokens will expire after 30 min.
0 Likes 0 ·
wm1 avatar image wm1 jraymer1028 commented ·
I'm not sure whats happening with this support forum. I posted a reply and a comment 12 hours ago and it's still being "moderated". In short - production access-tokens are 30 min, refresh-tokens are 1 year.
0 Likes 0 ·
mina12 avatar image
mina12 answered

This forum is amazing and there is a lot of useful content here candy clicker 2. Companies can use this content to further improve the quality of disposable nitrile gloves although they have not received any complaints about them yet. However, there is still room for improvement.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jcy avatar image
jcy answered

I tested that the access token expires in 24 hours, but I can't find it in the documentation, so I'm not sure whether this length will change in the future.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

wm1 avatar image
wm1 answered

Production access tokens are 30 minutes (see issued and expires timestamps in screenshot)

Production refresh tokens are 1 year. However if your app makes steady calls to Clover, refresh-token lifespan is effectively 30 minutes because you will get a new refresh token when you call /v2/refresh

1720877528273.png


1720877528273.png (39.1 KiB)
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community