safe-client-gateway icon indicating copy to clipboard operation
safe-client-gateway copied to clipboard

Set AUTH_VALIDITY_PERIOD_SECONDS as access token default validity

Open hectorgomezv opened this issue 6 months ago • 1 comments

Summary

This PR modifies the service to take the value AUTH_VALIDITY_PERIOD_SECONDS from the configuration as a default value for the exp attribute of the issued JWTs (and also the maxAge) value for the auth cookies.

Changes

  • Takes AUTH_VALIDITY_PERIOD_SECONDS as the default value when not specified by the client on the SiWE message.
  • Increases the default for this value to 24 hours.

hectorgomezv avatar Aug 09 '24 15:08 hectorgomezv