This project is an example Node.js application that illustrates how to integrate with FusionAuth using the Authorization Code grant.
This assumes you already have a running FusionAuth instance, user and application running locally. If you don't, please see the 5-Minute Setup Guide to do so.
http://localhost:3000/oauth-redirect
add a logout url of http://localhost:3000/logout
make sure your user has a first name.
note your client id and client secret.env.sample
to .env
and update it with your Client Id, Client Secret and FusionAuth instance base URL.npm install
npm start
Go to http://localhost:3000/ and login with the previously created user.
You should see 'Hello
You should be able to logout as well.
Nov 2022