Skip to content

Commit 48f27b0

Browse files
authored
🤖 Merge PR DefinitelyTyped#73374 fix(oidc-provider): Provider ctx getter is not static by @pleb
1 parent f358e50 commit 48f27b0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎types/oidc-provider/index.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1505,7 +1505,7 @@ export default class Provider extends Koa {
15051505
*/
15061506
readonly app: Koa;
15071507

1508-
get ctx(): KoaContextWithOIDC | undefined;
1508+
static get ctx(): KoaContextWithOIDC | undefined;
15091509

15101510
backchannelResult(
15111511
request: BackchannelAuthenticationRequest | string,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import * as oidc from "oidc-provider";
88

99
oidc.errors.AccessDenied.name;
1010

11+
Provider.ctx;
12+
1113
new oidc.Provider("https://op.example.com");
1214
new Provider("https://op.example.com");
1315

0 commit comments

Comments
 (0)