M̸̹̣i̼̗č̹̰o̧̲ͅ
10/22/2021, 9:12 PMts
recipeList: [
EmailPassword.init({
...
override: {
apis: apiInterface => {
return {
...apiInterface,
signUpPOST: (apiInterface) => async (input) => {
if (apiInterface.signUpPOST === undefined) {
throw Error('SignUpPOST is not reachable.')
}
// First we call the original implementation of signUpPOST.
const response = await apiInterface.signUpPOST(input)
// Post sign up response, we check if it was successful
if (response.status === 'OK') {
console.log('RESPONSE', response.user)
const { id, email, fullName, displayName } =
response.user as any as FormUser,
}
},
},
}),
....
]