Hello everyone. So I’ve been trying to set up super basic identity functions to get a handle on how they work, and as far as I can tell my identity-login.js function isn’t triggering on login. The code is super simple I’m just watching the netlify dev console to see if it outputs what I intend.
When I login nothing comes up. However, when I run netlify functions:invoke on my identity-login it DOES work, and outputs: {“app_metadata”:{“roles”:[“member”]}}.
The actual ‘app-metadata’ on the netlifyIdentity.currentUser() that the frontend sees is unchanged however, still only displaying {app_metadata: {provider: “email”}}
The console.log also fires here, although it always outputs ‘undefined undefined’ no matter whether there is a logged in user or not when I run the invoke command.
I’d appreciate any guesses or tips on what I’m doing wrong, as far as I’ve been able to see in the docs I’ve done this correctly. I’m very lost haha.
Just read through it, doesn’t help me unfortunately.
In that thread their identity-login seems to work but their identity-signup doesn’t, and they weren’t given any answers beyond ‘it might be a bug on our end’.
It seems like it might only not work locally with netlify dev?
I pushed and deployed my code and the console logs are outputting to the functions console in netlify, although the ‘user’ object that context is supposed to have is still coming back undefined.