Skip to main content
References

OAuth Provider Types

Type Aliases

InputType

type InputType = AuthRecipeInputType<PreAndPostAPIHookAction> & UserInput;

Defined in: tmp/supertokens-web-js/lib/ts/recipe/oauth2provider/types.ts:44

LoginInfo

type LoginInfo = object;

Defined in: tmp/supertokens-web-js/lib/ts/recipe/oauth2provider/types.ts:73

Properties

NormalisedInputType

type NormalisedInputType = AuthRecipeNormalisedInputType<PreAndPostAPIHookAction> & object;

Defined in: tmp/supertokens-web-js/lib/ts/recipe/oauth2provider/types.ts:46

Type Declaration

PostAPIHookContext

type PostAPIHookContext = RecipePostAPIHookContext<PreAndPostAPIHookAction>;

Defined in: tmp/supertokens-web-js/lib/ts/recipe/oauth2provider/types.ts:33

PreAndPostAPIHookAction

type PreAndPostAPIHookAction = 
| "GET_LOGIN_CHALLENGE_INFO"
| "GET_REDIRECT_URL_TO_CONTINUE_OAUTH_FLOW"
| "LOG_OUT";

Defined in: tmp/supertokens-web-js/lib/ts/recipe/oauth2provider/types.ts:27

PreAPIHookContext

type PreAPIHookContext = RecipePreAPIHookContext<PreAndPostAPIHookAction>;

Defined in: tmp/supertokens-web-js/lib/ts/recipe/oauth2provider/types.ts:32

RecipeInterface

type RecipeInterface = object;

Defined in: tmp/supertokens-web-js/lib/ts/recipe/oauth2provider/types.ts:55

Properties

PropertyTypeDefined in
getLoginChallengeInfo(input) => Promise<{ fetchResponse: Response; info: LoginInfo; status: "OK"; }>tmp/supertokens-web-js/lib/ts/recipe/oauth2provider/types.ts:56
getRedirectURLToContinueOAuthFlow(input) => Promise<{ fetchResponse: Response; frontendRedirectTo: string; status: "OK"; }>tmp/supertokens-web-js/lib/ts/recipe/oauth2provider/types.ts:61
logOut(input) => Promise<{ fetchResponse: Response; frontendRedirectTo: string; status: "OK"; }>tmp/supertokens-web-js/lib/ts/recipe/oauth2provider/types.ts:66

UserInput

type UserInput = object & RecipeModuleUserInput<PreAndPostAPIHookAction>;

Defined in: tmp/supertokens-web-js/lib/ts/recipe/oauth2provider/types.ts:35

Type Declaration