Skip to content

Commit 4190e90

Browse files
🤖 Merge PR DefinitelyTyped#70303 [oidc-provider] Type public Check.* constants by @michal-kocarek
1 parent 8cf8ef8 commit 4190e90

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

types/oidc-provider/index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2166,6 +2166,9 @@ export namespace interactionPolicy {
21662166
}
21672167

21682168
class Check {
2169+
static readonly REQUEST_PROMPT: true;
2170+
static readonly NO_NEED_TO_PROMPT: false;
2171+
21692172
constructor(
21702173
reason: string,
21712174
description: string,

types/oidc-provider/oidc-provider-tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ const provider = new oidc.Provider("https://op.example.com", {
346346
"foo",
347347
"bar",
348348
"baz",
349-
async ctx => true,
349+
async ctx => oidc.interactionPolicy.Check.REQUEST_PROMPT,
350350
async ctx => ({ foo: "bar" }),
351351
),
352352
),
@@ -358,7 +358,7 @@ const provider = new oidc.Provider("https://op.example.com", {
358358
"foo",
359359
"bar",
360360
"baz",
361-
async ctx => true,
361+
async ctx => oidc.interactionPolicy.Check.NO_NEED_TO_PROMPT,
362362
async ctx => ({ foo: "bar" }),
363363
),
364364
),

0 commit comments

Comments
 (0)