Skip to content

Commit

Permalink
Increase JWT expiry time to 10 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
maebeam committed Jun 24, 2021
1 parent 02cc8da commit d79b17c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/signing.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class SigningService {
signJWT(seedHex: string): string {
const keyEncoder = new KeyEncoder('secp256k1');
const encodedPrivateKey = keyEncoder.encodePrivate(seedHex, 'raw', 'pem');
return jsonwebtoken.sign({ }, encodedPrivateKey, { algorithm: 'ES256', expiresIn: 60 });
return jsonwebtoken.sign({ }, encodedPrivateKey, { algorithm: 'ES256', expiresIn: 60 * 10 });
}

decryptMessages(seedHex: string, encryptedHexes: string[]): { [key: string]: any } {
Expand Down

0 comments on commit d79b17c

Please sign in to comment.