Extend login sessions length in self-hosted Medplu...
# support
d
Hi, When logging into the Medplum frontend app (:3000), the server returns a JWT with a 1 hour expiration. If the page isn't refreshed in <1 hour, the user will be logged out. This is fine for production but is annoying when doing local dev. Is there any way to modify the JWT expiration time via configs? I briefly looked at
./packages/server/src/config/types.ts
but didn't see anything in there. Would be great if there's some way to configure this. TIA!
a
There was a discussion about this a while back -- perhaps this might be helpful: https://discord.com/channels/905144809105260605/1335013344624508928/1336061576163102810
r
HI Daniel. If you click the "remember me" button during login, you should receive a refresh token that is valid for 2w
d
@rahul1 thanks I saw that - I would like to be able to programmatically set this per environment .
As in, for a dev medplum env set it to a month, for staging a day, prod 12 hours
185 Views