Hello!
I'm getting the following error upon user registration:
Registration.tsx:67 TypeError: Cannot destructure property 'data' of '(intermediate value)' as it is undefined.
at onSubmit (Registration.tsx:56:22)
The user is created in the backend, but is not signed in due to the above.
Any insights as to how to resolve? The code on the registration page is identical to the demo.
Thank you
Hi,
Sorry for the delay in reply.
This error can appear if your server's response doesn't have "data" property, make sure that your server response has all required properties.
Regards,
Lauris Stepanovs,
Keenthemes Support Team
I managed to resolve this - Modified the backend code to respond to the client with *only* the accessToken and refreshToken and all is well.
Glad to hear you have already resolved this!
Please let us know if you have any further questions on this topic or anything else.