Create an OAuth Client-Server for code/token exchange

Share this video with your friends

Send Tweet

We'll create our client-server using the express and cors packages

Express will be used to create our HTTP application. We'll need it to post to our endpoints and listen to our port.

We need the cors package to make cross-origin requests since the front-end will be a different origin than the server.