api.spaceplanner.app

Spaceplanner API
git clone git://jacobedwards.org/api.spaceplanner.app
Log | Files | Refs

commit e7f470fc7658239c17698759c8f62b09ed91ec64
parent e3ca2ce444a669395f05f863bf31bf06d8e8d9f7
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Fri, 30 Aug 2024 09:37:10 -0700

Have JWT tokens expire in a week rather than an hour

Diffstat:
Mcmd/api/auth.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/api/auth.go b/cmd/api/auth.go @@ -33,8 +33,8 @@ func (e *Env) AuthParams(key []byte) (*jwt.GinJWTMiddleware, error) { // TODO: Don't know what Realm is, but should probably be changed Realm: "test zone", Key: key, - Timeout: time.Hour, - MaxRefresh: time.Hour, + Timeout: time.Hour * 24 * 7, + MaxRefresh: time.Hour * 24, IdentityKey: identityKey, PayloadFunc: payloadFunc(),