Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#70303 [oidc-provider] Type public Check.* …
Browse files Browse the repository at this point in the history
…constants by @michal-kocarek
  • Loading branch information
michal-kocarek authored Aug 15, 2024
1 parent 8cf8ef8 commit 4190e90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions types/oidc-provider/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2166,6 +2166,9 @@ export namespace interactionPolicy {
}

class Check {
static readonly REQUEST_PROMPT: true;
static readonly NO_NEED_TO_PROMPT: false;

constructor(
reason: string,
description: string,
Expand Down
4 changes: 2 additions & 2 deletions types/oidc-provider/oidc-provider-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ const provider = new oidc.Provider("https://op.example.com", {
"foo",
"bar",
"baz",
async ctx => true,
async ctx => oidc.interactionPolicy.Check.REQUEST_PROMPT,
async ctx => ({ foo: "bar" }),
),
),
Expand All @@ -358,7 +358,7 @@ const provider = new oidc.Provider("https://op.example.com", {
"foo",
"bar",
"baz",
async ctx => true,
async ctx => oidc.interactionPolicy.Check.NO_NEED_TO_PROMPT,
async ctx => ({ foo: "bar" }),
),
),
Expand Down

0 comments on commit 4190e90

Please sign in to comment.