supertokens-node icon indicating copy to clipboard operation
supertokens-node copied to clipboard

Export api method input types

Open nadilas opened this issue 2 years ago • 2 comments

Could we potentially get exported types for the api methods? e.g. https://github.com/supertokens/supertokens-node/blob/0e3d0e30437d69edcb881c9dfb589bbea2519a48/lib/ts/recipe/thirdpartyemailpassword/types.ts#L245

Something along the lines of:

export interface ThirdPartySignInUpPOSTInput {
              provider: TypeProvider;
              code: string;
              redirectURI: string;
              authCodeResponse?: any;
              clientId?: string;
              options: ThirdPartyAPIOptions;
              userContext: any;
}

Source: https://discord.com/channels/603466164219281420/644849840475602944/972839242839515186

nadilas avatar May 08 '22 13:05 nadilas