mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-28 21:25:32 +00:00
correct calculation of exp-date
This commit is contained in:
parent
0ed47d69e6
commit
54258adc42
@ -508,8 +508,11 @@ export class TransactionLinkResolver {
|
||||
)
|
||||
let verifiedPayload: DisbursementJwtPayloadType | null = null
|
||||
if (jwtPayload != null) {
|
||||
if (jwtPayload.exp && jwtPayload.exp < new Date().getTime()) {
|
||||
throw new LogError('Redeem JWT-Token expired! jwtPayload.exp=', new Date(jwtPayload.exp))
|
||||
if (jwtPayload.exp && new Date(jwtPayload.exp * 1000) < new Date()) {
|
||||
throw new LogError(
|
||||
'Redeem JWT-Token expired! jwtPayload.exp=',
|
||||
new Date(jwtPayload.exp * 1000),
|
||||
)
|
||||
} else if (jwtPayload.tokentype === DisbursementJwtPayloadType.REDEEM_ACTIVATION_TYPE) {
|
||||
verifiedPayload = new DisbursementJwtPayloadType(
|
||||
jwtPayload.sendercommunityuuid as string,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user