Skip to content

Commit 4c7bfdb

Browse files
authored
fix: add missing types to OAuth2Provider recipe init (#861)
1 parent d48dee8 commit 4c7bfdb

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

lib/build/recipe/oauth2provider/index.d.ts

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/recipe/oauth2provider/recipe.d.ts

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ts/recipe/oauth2provider/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export default class Wrapper {
2424
static init(config?: UserInput) {
2525
return OAuth2Provider.init(config);
2626
}
27+
2728
/**
2829
* Returns information about an OAuth login in progress
2930
*

lib/ts/recipe/oauth2provider/recipe.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ export default class OAuth2Provider extends RecipeModule<
5757
super(config);
5858
}
5959

60-
static init(config?: UserInput): RecipeInitResult<any, never, any, any> {
60+
static init(
61+
config?: UserInput
62+
): RecipeInitResult<GetRedirectionURLContext, PreAndPostAPIHookAction, OnHandleEventContext, NormalisedConfig> {
6163
const normalisedConfig = normaliseOAuth2Config(config);
6264
return {
6365
recipeID: OAuth2Provider.RECIPE_ID,

0 commit comments

Comments
 (0)