Skip to content

Commit

Permalink
fix(iam): temp remove did-session age check (#2127)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianHymer authored Feb 1, 2024
1 parent 7e6aadf commit d983d4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iam/src/utils/verifyDidChallenge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ const verifySignature = async (signedChallenge: SignedDidChallenge, cacao: Cacao
const verifyAgeAndGetCacao = async (signedChallenge: SignedDidChallenge): Promise<Cacao> => {
try {
const cacao = await Cacao.fromBlockBytes(new Uint8Array(signedChallenge.cacao));
if (Date.now() - new Date(cacao.p.iat).getTime() < MAX_VALID_DID_SESSION_AGE) {
return cacao;
}
// if (Date.now() - new Date(cacao.p.iat).getTime() < MAX_VALID_DID_SESSION_AGE) {
return cacao;
// }
} catch (e) {
console.error(e);
}
Expand Down

3 comments on commit d983d4f

@NASIMUDDIN12
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi

@maxraven27
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good

@mehdibtc
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copied

Please sign in to comment.