Skip to content

Commit

Permalink
fix: add missing types to OAuth2Provider recipe init
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Oct 18, 2024
1 parent d48dee8 commit 477bbc2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
9 changes: 8 additions & 1 deletion lib/build/recipe/oauth2provider/index.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion lib/build/recipe/oauth2provider/recipe.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/ts/recipe/oauth2provider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default class Wrapper {
static init(config?: UserInput) {
return OAuth2Provider.init(config);
}

/**
* Returns information about an OAuth login in progress
*
Expand Down
4 changes: 3 additions & 1 deletion lib/ts/recipe/oauth2provider/recipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ export default class OAuth2Provider extends RecipeModule<
super(config);
}

static init(config?: UserInput): RecipeInitResult<any, never, any, any> {
static init(
config?: UserInput
): RecipeInitResult<GetRedirectionURLContext, PreAndPostAPIHookAction, OnHandleEventContext, NormalisedConfig> {
const normalisedConfig = normaliseOAuth2Config(config);
return {
recipeID: OAuth2Provider.RECIPE_ID,
Expand Down

0 comments on commit 477bbc2

Please sign in to comment.