HI,
I have 2 questions strongly linked to each other.
1) How I I can send request to my table?
apis: (originalImplementation) => {
return {
...originalImplementation,
thirdPartySignInUpPOST: async function (input) {
try {
const response =
await originalImplementation.thirdPartySignInUpPOST(
input,
);
if (response.status === 'OK' && response.createdNewUser) {
// TODO: some post sign up logic
await usersService.createUser({
pseudonym: input.pseudonym,
username: input.pseudonym,
profilePhoto: input.profilePhoto,
email: input.email,
});
}
return await originalImplementation.thirdPartySignInUpPOST?.(
input,
);
} catch (err: any) {
if (
err.message === 'Cannot sign up as email already exists'
) {
return {
status: 'GENERAL_ERROR',
message:
'Seems like you already have an account with another method. Please use that instead.',
};
}
throw err;
}
},
};
},
I have this error for every "input.xxx": TS2339: Property 'pseudonym' does not exist on type '{ provider: TypeProvider; code: string; redirectURI: string; authCodeResponse?: any; clientId?: string; options: APIOptions; userContext: any; }'.
2) And if I use Google provider, I need change them to custom provider?