0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

fix: revert incorrect comments

This commit is contained in:
Gao Sun 2021-07-07 21:27:37 +08:00
parent a7ab69ecd5
commit 0ee771bc33
No known key found for this signature in database
GPG key ID: 0F0EFA2E36639F31
3 changed files with 4 additions and 4 deletions

View file

@ -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),

View file

@ -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;
}

View file

@ -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,