Hahaha wow… Good catch! Thank you so much for your help Evan, that seems to have fixed my problem! .
Sorry to bring up another issue, but I noticed that the upsertUser
method isn’t being called when I have a successful sign up/login with a new user now…
The flow is as follows: I sign up successfully with a new user that is not in the Auth0 database, then I am redirected back to /
note this is not what I have in my configuration, after a user logs in, they should be redirected to /home
as described. So I click login again and then I am directed to the /home
page but since no user was created, I get a Trying to get property 'name' of non-object
. From what I read, the initial sign up/login of a new user should trigger the upsertUser
method. However it doesn’t get called when I sign up for the first time, nor when I log in for the first time.
Do you have any tips here? Please let me know if I should open another thread for this topic. Thanks again!!!