Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to implement Angular Social Login with Express Server

I have successfully implemented Angular Social Login into my Angular app, but now I need to implement it into the server part of the application, which I have done in Node.js with Express. What am I suppose to do? I understand it is something to do with the token that Google sends, but what exactly is the way to implement this token with Express? Can you please point me to some source for this?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You have several options to achieve this
I’m assuming you’re going to use JSON Web Tokens of some sort. If so, then you’d get your token from the FrontEnd, you then would attach the token to the header of your requests and the Backend would authenticate the validity of the token

Some good options would be to use a service like Auth0 (here’s a quickstart guide) or Firebase (Add Firebase to your JavaScript project)

Some Links that may help:

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading