integrate backend with paddle

This commit is contained in:
m5r
2021-09-27 06:08:02 +08:00
parent 9cec49f255
commit 0f2c3daf77
16 changed files with 679 additions and 25 deletions

View File

@ -16,11 +16,6 @@ export default function useRequireOnboarding() {
throw router.push(Routes.StepTwo());
}
/*if (!user.paddleCustomerId || !user.paddleSubscriptionId) {
throw router.push(Routes.StepTwo());
return;
}*/
if (!phoneNumber) {
throw router.push(Routes.StepThree());
}

4
app/core/types.ts Normal file
View File

@ -0,0 +1,4 @@
export type ApiError = {
statusCode: number;
errorMessage: string;
};