Article 5AE6E Who should handle user authentication - Angular or Nodejs?

Who should handle user authentication - Angular or Nodejs?

by
TheIndependentAquarius
from LinuxQuestions.org on (#5AE6E)
My thinking is that I should get user name and password from forms of Angular and then pass on this data to Nodejs which will retrieve the information from database and tell whether the credentials are correct or not.

Then I searched Google and found several links talking about user authentication through Angular:

1: https://www.linkedin.com/pulse/angul...validation-das
2: https://blog.angular-university.io/a...uthentication/

What will be the role of Angular and Nodejs in user authentication in this context?

Also there is OAuth 2 which can be used with both Angular and Node.
How should I decide with whom should I use it with?

.
.

https://developer.okta.com/blog/2019...entication-jwt
Quote:
JSON Web Tokens (JWTs) provide one way to solve this issue. Your Angular app can talk to a backend that produces a token. The Angular app can then pass that token in an Authorization header to the backend to prove they're authenticated. The backend should verify the JWT and grant access based on its validity.
How to decide between JWT and OAuth2 ?
Please help me to understand what I am doing here.latest?d=yIl2AUoC8zA latest?i=d-ZNNJ3GYd4:coABIPW0GQs:F7zBnMy latest?i=d-ZNNJ3GYd4:coABIPW0GQs:V_sGLiP latest?d=qj6IDK7rITs latest?i=d-ZNNJ3GYd4:coABIPW0GQs:gIN9vFwd-ZNNJ3GYd4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments