Update plugins/auth-backend/src/identity/TokenFactory.ts

Co-authored-by: Himanshu Mishra <himanshu@orkohunter.net>
This commit is contained in:
Nils Streijffert
2021-02-04 15:05:34 +01:00
committed by GitHub
parent fc2371edeb
commit 190f2358fd
@@ -117,7 +117,7 @@ export class TokenFactory implements TokenIssuer {
}
private async getKey(): Promise<JSONWebKey> {
// Make sure that we only generate one key at a time¨
// Make sure that we only generate one key at a time
if (this.privateKeyPromise) {
if (this.keyExpiry && this.keyExpiry > DateTime.local()) {
return this.privateKeyPromise;