Closed parkeragee closed 5 years ago
Answered in Ep2 - coming soon: https://ask.netlify.com/episode/02/
Any chance could get a link to the code repo for the demo?
Ok I found this but it inexplicably doesn't have an identity-signup.js
function? Perhaps this is explained in the video but was trying to avoid having to watch it all!
https://github.com/netlify/identity-update-user-data
The issue I'm running into is that my identity-signup.js
lambda never seems to get called. It shows as a function in the Functions tab of the netlify dashboard but no logs are generated
I have the same issue, my identity-signup.js never gets called 🤔 UPDATE: It seems to be working now. I was under the impression that this also worked locally, but seems like it only works in production. Would be great if it also worked locally. That way we could test before deploying anything
About me
Software Engineer for Campaign Monitor & Founder of Sully Labs (my umbrella entity for all of my side projects)
My question in a little more detail
What's the best way to update the
user_metadata
in Netlify Identity as a response to aidentity-signup
event?An
identity-signup
event only returns theuser
object and does not include an Identity admin token for updating theuser_metadata
via GoTrue.Here's my use-case:
identity-signup
event fires and myidentity-signup.js
function runs which creates a user in MongoDB_id
for the newuser
document into the Netlify Identityuser_metadata
, but I have not found an easy way to do that.Ideally, I would like to handle updating the
user_metadata
within thatidentity-signup.js
function right after the user is created in MongoDB.Thoughts?