apostrophecms / apostrophe

A full-featured, open-source content management framework built with Node.js that empowers organizations by combining in-context editing and headless architecture in a full-stack JS environment.
https://apostrophecms.com
Other
4.36k stars 590 forks source link

Token API expires every 2 weeks. Can we automatically renew it? #4346

Closed thomas-rousselot closed 11 months ago

thomas-rousselot commented 1 year ago

Details

We're working on a project for Michelin. But the API token expries every 2 weeks and we have to manually renew it then. When token expires, content is no longer available, leaving a blank space. Capture d’écran 2023-11-16 à 15 20 31

Expected behavior

Is it possible to change this? Otherwise, is there a way to automatically renew it so we don't have to manually renew it every week?

boutell commented 1 year ago

What token are you referring to? Is this an apostrophe-headless bearer token? An A3 bearer token?

If you need this dealt with in a timely fashion for Michelin please bring it to the Michelin gitlab apostrophe-enhancements board with appropriate details.

thomas-rousselot commented 11 months ago

Hi. It's the A3 bearer token indeed. https://v3.docs.apostrophecms.org/reference/api/authentication.html#bearer-tokens Could you give me access to the Michelin gitlab apostrophe-enhancements board so i can resubmit the request there?

Thanks

boutell commented 11 months ago

Please reach out to tom@apostrophecms.com so I can connect you with the appropriate people on the Michelin team. Thanks!

boutell commented 10 months ago

The docs are being updated to reflect the fact that the bearerTokens.lifetime option of @apostrophecms/login is specified in milliseconds, not seconds.