These are the SDK reference docs. If you’re looking for docs to implement SuperTokens, you might want to check out the User Guides

Hierarchy

  • APIInterface

Index

Properties

authorisationUrlGET

authorisationUrlGET: undefined | ((input: { options: APIOptions; provider: TypeProvider }) => Promise<{ status: "OK"; url: string }>)

emailExistsGET

emailExistsGET: undefined | ((input: { email: string; options: APIOptions }) => Promise<{ exists: boolean; status: "OK" }>)

emailPasswordSignInPOST

emailPasswordSignInPOST: undefined | ((input: { formFields: { id: string; value: string }[]; options: APIOptions }) => Promise<{ status: "OK"; user: User } | { status: "WRONG_CREDENTIALS_ERROR" }>)

emailPasswordSignUpPOST

emailPasswordSignUpPOST: undefined | ((input: { formFields: { id: string; value: string }[]; options: APIOptions }) => Promise<{ status: "OK"; user: User } | { status: "EMAIL_ALREADY_EXISTS_ERROR" }>)

generatePasswordResetTokenPOST

generatePasswordResetTokenPOST: undefined | ((input: { formFields: { id: string; value: string }[]; options: APIOptions }) => Promise<{ status: "OK" }>)

passwordResetPOST

passwordResetPOST: undefined | ((input: { formFields: { id: string; value: string }[]; options: APIOptions; token: string }) => Promise<{ status: "OK" | "RESET_PASSWORD_INVALID_TOKEN_ERROR" }>)

thirdPartySignInUpPOST

thirdPartySignInUpPOST: undefined | ((input: { code: string; options: APIOptions; provider: TypeProvider; redirectURI: string }) => Promise<{ authCodeResponse: any; createdNewUser: boolean; status: "OK"; user: User } | { error: string; status: "FIELD_ERROR" } | { status: "NO_EMAIL_GIVEN_BY_PROVIDER" }>)

Generated using TypeDoc