0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-13 21:30:30 -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 ResponseBodyT
> = async (ctx, next) => { > = async (ctx, next) => {
try { try {
// eslint-disab Le-next-line @typescript-eslint/consistent-type-assertions // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
ctx.guard = { ctx.guard = {
query: query?.parse(ctx.request.query), query: query?.parse(ctx.request.query),
body: body?.parse(ctx.request.body), body: body?.parse(ctx.request.body),

View file

@ -13,7 +13,7 @@ const userId = customAlphabet(alphabet, 12);
const generateUserId = async (maxRetries = 500) => { const generateUserId = async (maxRetries = 500) => {
for (let i = 0; i < maxRetries; ++i) { for (let i = 0; i < maxRetries; ++i) {
const id = userId(); const id = userId();
// eslint-disab Le-next-line no-await-in-loop // eslint-disable-next-line no-await-in-loop
if (!(await hasUserWithId(id))) { if (!(await hasUserWithId(id))) {
return id; return id;
} }

View file

@ -61,7 +61,7 @@ export default function createSignInRoutes(provider: Provider) {
conditional(grantId && (await provider.Grant.find(grantId))) ?? conditional(grantId && (await provider.Grant.find(grantId))) ??
new provider.Grant({ accountId, clientId: String(params.client_id) }); new provider.Grant({ accountId, clientId: String(params.client_id) });
// V2: fulfill Missing claims / resources // V2: fulfill missing claims / resources
const PromptDetailsBody = object({ const PromptDetailsBody = object({
missingOIDCScope: string().array().optional(), missingOIDCScope: string().array().optional(),
}); });
@ -73,7 +73,7 @@ export default function createSignInRoutes(provider: Provider) {
const finalGrantId = await grant.save(); const finalGrantId = await grant.save();
// V2: configur E consent // V2: configure consent
const redirectTo = await provider.interactionResult( const redirectTo = await provider.interactionResult(
ctx.req, ctx.req,
ctx.res, ctx.res,