Skip to content

Commit

Permalink
fix(typescript): correct KoaContextWithOIDC definition, take 2
Browse files Browse the repository at this point in the history
closes #659
  • Loading branch information
alvis authored Feb 28, 2020
1 parent 9da6c7e commit 84d32fc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,12 @@ declare class OIDCContext {
getAccessToken(opts?: { acceptDPoP?: boolean, acceptQueryParam?: boolean }): string;
}

export type KoaContextWithOIDC = Koa.ParameterizedContext<{}, { oidc: OIDCContext }>;
export type KoaContextWithOIDC = Koa.ParameterizedContext<
Koa.DefaultState,
Koa.DefaultContext & {
oidc: OIDCContext;
}
>;

export const DYNAMIC_SCOPE_LABEL: symbol;

Expand Down

0 comments on commit 84d32fc

Please sign in to comment.