From 0ee771bc333cd6a6d5d60b93fbbd177ab7a28c8e Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Wed, 7 Jul 2021 21:27:37 +0800 Subject: [PATCH] fix: revert incorrect comments --- packages/core/src/middleware/koa-guard.ts | 2 +- packages/core/src/routes/register.ts | 2 +- packages/core/src/routes/sign-in.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/core/src/middleware/koa-guard.ts b/packages/core/src/middleware/koa-guard.ts index 540454291..25bc90be4 100644 --- a/packages/core/src/middleware/koa-guard.ts +++ b/packages/core/src/middleware/koa-guard.ts @@ -39,7 +39,7 @@ export default function koaGuard< ResponseBodyT > = async (ctx, next) => { try { - // eslint-disab Le-next-line @typescript-eslint/consistent-type-assertions + // eslint-disable-next-line @typescript-eslint/consistent-type-assertions ctx.guard = { query: query?.parse(ctx.request.query), body: body?.parse(ctx.request.body), diff --git a/packages/core/src/routes/register.ts b/packages/core/src/routes/register.ts index 0924321ab..e7497d629 100644 --- a/packages/core/src/routes/register.ts +++ b/packages/core/src/routes/register.ts @@ -13,7 +13,7 @@ const userId = customAlphabet(alphabet, 12); const generateUserId = async (maxRetries = 500) => { for (let i = 0; i < maxRetries; ++i) { const id = userId(); - // eslint-disab Le-next-line no-await-in-loop + // eslint-disable-next-line no-await-in-loop if (!(await hasUserWithId(id))) { return id; } diff --git a/packages/core/src/routes/sign-in.ts b/packages/core/src/routes/sign-in.ts index 47110801c..a81acf206 100644 --- a/packages/core/src/routes/sign-in.ts +++ b/packages/core/src/routes/sign-in.ts @@ -61,7 +61,7 @@ export default function createSignInRoutes(provider: Provider) { conditional(grantId && (await provider.Grant.find(grantId))) ?? new provider.Grant({ accountId, clientId: String(params.client_id) }); - // V2: fulfill Missing claims / resources + // V2: fulfill missing claims / resources const PromptDetailsBody = object({ missingOIDCScope: string().array().optional(), }); @@ -73,7 +73,7 @@ export default function createSignInRoutes(provider: Provider) { const finalGrantId = await grant.save(); - // V2: configur E consent + // V2: configure consent const redirectTo = await provider.interactionResult( ctx.req, ctx.res,