GithubHelp home page GithubHelp logo

Comments (5)

ottokruse avatar ottokruse commented on July 19, 2024 1

Yeah you're right, maybe that is a better strategy!

from cloudfront-authorization-at-edge.

ottokruse avatar ottokruse commented on July 19, 2024

Hi Gabriel. That is intended. The refresh token will remain the same.

The refresh token cannot be used to refresh itself. Thereby the expiry date of the refresh token is the ultimate date when the user has to sign in again.

from cloudfront-authorization-at-edge.

BartoGabriel avatar BartoGabriel commented on July 19, 2024

Thanks Otto, so it is not a mistake, I did not interpret how it worked.

I usually refresh all tokens indefinitely as long as the user is active. When the user stops being active (does not access the web) is when the lifetime of the refresh token begins to run. For example, if someone is using github continuously, the session never expires, it expires when for an X time it is not used.

from cloudfront-authorization-at-edge.

ottokruse avatar ottokruse commented on July 19, 2024

Don't hesitate to send a PR! (just saying 😄 )

from cloudfront-authorization-at-edge.

ottokruse avatar ottokruse commented on July 19, 2024

Had a look into this and had to refresh my memory, found that Cognito indeed does not return a refresh token when refreshing tokens––Cognito only returns a new ID and Access token then.

Which makes total sense to me, the expiry date of the refresh token governs how long it is valid for (can set it to 10 years max).

So, closing this ticket as I believe there is no development opportunity for this solution here.

from cloudfront-authorization-at-edge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.