From 041698891386e865d04d59c06eef7f40764495af Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Mon, 30 May 2022 10:41:23 +0200 Subject: [PATCH] Set invitations expiration to 7 days --- backend/src/app/rpc/mutations/teams.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/app/rpc/mutations/teams.clj b/backend/src/app/rpc/mutations/teams.clj index 586a9ad602..4657a425a1 100644 --- a/backend/src/app/rpc/mutations/teams.clj +++ b/backend/src/app/rpc/mutations/teams.clj @@ -400,7 +400,7 @@ (defn- create-team-invitation [{:keys [conn tokens team profile role email] :as cfg}] (let [member (profile/retrieve-profile-data-by-email conn email) - token-exp (dt/in-future "48h") + token-exp (dt/in-future "168h") ;; 7 days itoken (tokens :generate {:iss :team-invitation :exp token-exp