mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
👕 Fix lint issue
This commit is contained in:
parent
359dc3b485
commit
9db449c953
|
@ -188,8 +188,8 @@ class App {
|
||||||
}
|
}
|
||||||
|
|
||||||
const jwkClient = jwks({ cache: true, jwksUri });
|
const jwkClient = jwks({ cache: true, jwksUri });
|
||||||
function getKey(header: any, callback: Function) {
|
function getKey(header: any, callback: Function) { // tslint:disable-line:no-any
|
||||||
jwkClient.getSigningKey(header.kid, (err: Error, key: any) => {
|
jwkClient.getSigningKey(header.kid, (err: Error, key: any) => { // tslint:disable-line:no-any
|
||||||
if (err) throw ResponseHelper.jwtAuthAuthorizationError(res, err.message);
|
if (err) throw ResponseHelper.jwtAuthAuthorizationError(res, err.message);
|
||||||
|
|
||||||
const signingKey = key.publicKey || key.rsaPublicKey;
|
const signingKey = key.publicKey || key.rsaPublicKey;
|
||||||
|
|
Loading…
Reference in a new issue