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 0f68cba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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.

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 0f68cba

Please sign in to comment.