watermark logo

API Authentication with Node Part #9 - OAuth Explained

5 Views
admin
admin
03 Dec 2019

In this video, we'll start learning about OAuth (OAuth2). The OAuth flow can be tricky, especially when trying to understand it for the first time.

The fact that doesn't help it is that there are two different ways of handling OAuth. In one way, you can use OAuth in server-side rendered application in which your backend code will pretty much handle everything.

The other approach, the one that we're going for is SPA - Single Page Application in which we have separate frontend and backend servers. In this approach, OAuth is going to be pretty much split into two pieces. One piece will be handled on the frontend, while the other piece will be handled on the backend.

The frontend will need to get access to accessToken, while the backend will actually exchange accessToken for user profile and take care of things from there.

Link to repository:
https://github.com/eXtremeXR/A....PIAuthenticationWith

Show more

0 Comments Sort By

No comments found

Facebook Comments

Up next