-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
914335a
commit 9416aad
Showing
7 changed files
with
29 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// NOTE(douglasduteil): app related oidc-provider types | ||
// Those interfaces override the type which is incomplete in the original lib | ||
// | ||
|
||
import type { | ||
InteractionResults, | ||
OIDCContext, | ||
UnknownObject, | ||
} from "oidc-provider"; | ||
|
||
declare global { | ||
/** | ||
* Extends the {@link OIDCContext.params} type. | ||
* Should be used instead of KoaContextWithOIDC["oidc"]["params"] | ||
*/ | ||
interface OIDCContextParams extends UnknownObject { | ||
scope: string; | ||
prompt: "select_organization" | "update_userinfo"; | ||
} | ||
|
||
/** | ||
* Extends the {@link OIDCContext.result} type. | ||
*/ | ||
interface OidcInteractionResults extends InteractionResults { | ||
select_organization?: boolean; | ||
update_userinfo?: boolean; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.