https://github.com/fusionauth/fusionauth-example-node-deeplink
https://github.com/fusionauth/fusionauth-example-node-deeplink
hacktoberfest
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fusionauth/fusionauth-example-node-deeplink
- Owner: FusionAuth
- License: apache-2.0
- Created: 2021-07-05T19:16:09.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-28T05:55:20.000Z (almost 2 years ago)
- Last Synced: 2025-04-05T17:38:06.666Z (about 1 year ago)
- Topics: hacktoberfest
- Language: JavaScript
- Homepage:
- Size: 60.5 KB
- Stars: 1
- Watchers: 11
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# FusionAuth Deeplink Node.js example
This project is built on top of the fusionauth-example-node application from the [5-Minute Setup Guide](https://fusionauth.io/docs/v1/tech/5-minute-setup-guide). This addition to that project illustrates the ability to save the application state and to return to the same state upon authenication.
This application will use the same OAuth Authorization Code workflow as the Node Example.
## To run
This assumes you already have a running FusionAuth instance, user and application running locally at `http://localhost:9011`. If you don't, please see the [5-Minute Setup Guide](https://fusionauth.io/docs/v1/tech/5-minute-setup-guide) to do so.
* update your FusionAuth application to allow a redirect of `http://localhost:3000/oauth-redirect`
* make sure your user has a first name and is registered for the FusionAuth application.
* `npm install`
* update `routes/index.js` with the client id and client secret of your FusionAuth application.
* `npm start`
Go to http://localhost:3000/ and click through to a product page. Then click login, log in and then verify that once authenticated you are returned to the same product page.
Learn more at https://fusionauth.io