Start a new topic
Answered

Trouble login Angular-Kinvey

Hello, I am building an app for an exam and I have troubles login users. The app is using Angular 9 as front-end and angular-kinvey-sdk v.4.2.5. Signup function in the UserService is performing login after registering the user, but when I try to login with the same user I get "Invalid credentials" error. When I add the user directly in the Users collection there is no problem login it. After signup the password in the response is hashed and when I copy it, I can login with the string. I have been researching the problem and trying different approaches but nothing worked by now. Appreciate the time taken. Thanks, Vanya

Best Answer

Hey Vanya,


Copying your comment here just to complete the loop:

" Hi, Pranav!

I looked up the register component, the problem was a form builder group used for validation password and confirm-password. I think I fixed it.

Thank you!"




Thanks,

Pranav

Kinvey


Hi Vanya,


Please review our sample project for Angular SDK on this link. Also, please create a new app on the console for testing this since I see all other apps are locked after 30 days.


If this doesn't help, please let me know the Kid of the app environment for which you are facing this issue. When you log in on the console, you will see the dashboard. Just click on the 3 vertical dots next to the app name and you will find the app key there.


Thanks,

Pranav

Kinvey

Hi Vanya,


I reviewed server logs and found that there are both successful and unsuccessful login requests. I think the issue is wrong credentials used. For successful login requests, we found that the password provided is null. So I think the issue is that when creating the user, the password that was/got passed is null. In this case, you get a autogenerated password. Can you please share your sample project so that we can review your code for user signup as well as login operations and investigate this further?


Thanks,

Pranav

Answer

Hey Vanya,


Copying your comment here just to complete the loop:

" Hi, Pranav!

I looked up the register component, the problem was a form builder group used for validation password and confirm-password. I think I fixed it.

Thank you!"




Thanks,

Pranav

Kinvey

Login or Signup to post a comment