0

I am developing an Angular application running on a NodeJS server and I am using Kinvey for data store: https://devcenter.kinvey.com/nodejs

When I log in from one browser, everything works correctly, but when I log in from a second browser without logging out from the first one, I get an error message that says there cannot be more than one Active User. The app still runs on localhost.

Are multiple accounts allowed when using Kinvey ActiveUser on NodeJS servers?

Deyan Peychev
  • 77
  • 3
  • 7
  • https://devcenter.kinvey.com/nodejs/guides/users#userauthentication In the section marked Active User, the second line says there can only be one active user at a time. Don't know if that's helpful. – Andy Foster Jul 24 '18 at 13:09

1 Answers1

0

There can only be one active user at a time, but that doesn't mean one per the entire application. It really depends on how you are handling your active user. If this is something where you are trying to just make a generic data call and don't want to require the user to have to log in, you'd want to set up a generic user for the app or use an implicit user. In all cases, you can check if there is an existing user prior to trying to log in a new user.

I wrote a long tutorial about the various kinds of users that you can find here: https://www.progress.com/blogs/understanding-users-kinvey

remotesynth
  • 271
  • 1
  • 3
  • I want multiple users to be able to log in on my website and use it. Do you think that initializing an anonymous user on server starting is a good idea? I will still keep the "human user" details, but use only the anonymous user on the back-end. – Deyan Peychev Jul 30 '18 at 13:17