I’ve been using Netlify Identity for several years now with no issues with the identity-signup function. Sometime in the past two days, I noticed that my identity-signup function is no longer updating the users app_metadata field.
The function executes without failing, but it does not update the users app_metadata.
@SamO this is a breaking bug for my site. I tried to force update the app_metadata within the identity-signup function (instead of relying on netlify to handle it based on the return body), but the function doesn’t have the needed context to update the user’s app_metadata.
If you have any workarounds you can think of please let me know!
this was a bit hacky, but as a workaround I now call a separate lambda function as soon as the user lands on the account settings page to update their app_metadata.
Hi, @teakwood and @fabianhijlkema. The fix for this has been rolled out. Would you please test your identity sign-up functions again now? No new deploy is required. They should just be working now.
However, if they are not or if there are any questions, please let us know.
@luke It seems to be working again from our side. Did this involve any changes to the identity-login-background function/hook as well? Because this now is causing a login error (malformed JSON response I believe). While this worked fine until this point.
Well I’m not sure how to phrase it differently. Before the issue above arose and was fixed by Netlify, our login setup was working fine. After the fix, our background function for identity-login started to error out, resulting in not being able to login at all while the background function was active.
So I was wondering if the fix you’ve deployed also had any impact on this background function? Or that is a mere coincidence and this is a completely separate issue? I haven’t had time to find out exactly what is going wrong with this background function, but it was giving back something like a ‘malformed JSON response’ error.