File tree 1 file changed +5
-6
lines changed
apps/dashboard/src/app/nebula-app/login
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ import {
16
16
NEBULA_COOKIE_PREFIX_TOKEN ,
17
17
} from "../_utils/constants" ;
18
18
19
+ const FOURTEEN_DAYS_IN_SECONDS = 14 * 24 * 60 * 60 ;
20
+
19
21
export async function getNebulaLoginPayload (
20
22
params : GenerateLoginPayloadParams ,
21
23
) : Promise < LoginPayload > {
@@ -131,8 +133,7 @@ export async function doNebulaLogin(
131
133
httpOnly : true ,
132
134
secure : true ,
133
135
sameSite : "strict" ,
134
- // 3 days
135
- maxAge : 3 * 24 * 60 * 60 ,
136
+ maxAge : FOURTEEN_DAYS_IN_SECONDS ,
136
137
} ,
137
138
) ;
138
139
@@ -144,8 +145,7 @@ export async function doNebulaLogin(
144
145
httpOnly : true ,
145
146
secure : true ,
146
147
sameSite : "strict" ,
147
- // 3 days
148
- maxAge : 3 * 24 * 60 * 60 ,
148
+ maxAge : FOURTEEN_DAYS_IN_SECONDS ,
149
149
} ,
150
150
) ;
151
151
@@ -209,8 +209,7 @@ export async function isNebulaLoggedIn(address: string) {
209
209
httpOnly : false ,
210
210
secure : true ,
211
211
sameSite : "strict" ,
212
- // 3 days
213
- maxAge : 3 * 24 * 60 * 60 ,
212
+ maxAge : FOURTEEN_DAYS_IN_SECONDS ,
214
213
} ) ;
215
214
return true ;
216
215
}
You can’t perform that action at this time.
0 commit comments