I’ve tested with logged in user account and api keys and the issue doesn’t happen in those instances. It’s only anon-user that has the issue. Any idea on what can be the cause of this? While I’m dev/testing I have hundreds of anonymous users in the app.allUsers array:
Can you try to reproduce the python example I made in my last post in this topic and see if you can reproduce this behaviour? I wasn’t able to reproduce the problem last time so my guess is that it was a problem in the code rather than something from the platform.
Maybe try to add a log near the anon-user login method and one next to the GraphQL call and see if you are calling the login fonction only once and the GraphQL one multiple time, like in my python example?
Awesome, I’m glad you found the solution !
It’s not easy to debug remotely without seeing the actual code .
To sum up, when you call app.logIn(creds), you are creating a new user each time if you are using the anon-auth.
The same logic would apply for any other auth system available - but you don’t want to re-authenticate the user each time. Especially if it’s just a refresh or the person browsing around your website. You want to re-use the same user object in that case.