Hello,
We recently switched from classic login to ACUL as it gives you the same control over the page’s look and styling without the headache of routing and security, which is awesome.
However, I noticed that access to existing user metadata is limited. I’m implementing an invitation flow, and the invited user gets an email with a link to reset their password. I want to show different texts and more context to the invited user as it’s not simply resetting a password.
The invited user looks something like this:
{
"created_at": "...",
"email": "...",
"email_verified": false,
"identities": [...],
...
"user_metadata": {
"test": "test_user_metadata"
},
"app_metadata": {
"test": "test_user_app_metadata"
// invitation metadata
...
}
}
My reset-password screen is set to include custom data:
User metadata: test
App metadata: test
However, I don’t get anything in the ResetPassword context:
JSON.stringify(new ResetPassword().user) =>
{
"id": null,
"username": null,
"email": null,
"picture": null,
"phoneNumber": null,
"userMetadata": null,
"appMetadata": null,
"enrolledFactors": null,
"enrolledEmails": null,
"enrolledPhoneNumbers": null,
"enrolledDevices": null,
"organizations": null
}
Is metadata not accessible in reset-password? Or am I missing something?
Any help would be greatly appreciated.