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:
parent
a7ab69ecd5
commit
0ee771bc33
3 changed files with 4 additions and 4 deletions
|
@ -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),
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue