Javascript/Typescript
Next.js Guides
Guidance on integrating Furo login using Next.js.
1. Download the Git Repository
Download the Furo Next.js Sample project.
git clone https://github.com/lukasjhan/furo-sample-nextjs
Next, install the npm packages.
cd furo-sample-nextjs
yarn install
2. Project Configuration
Go to the [Configuration > For Developers] tab in the Furo Console and perform the following two tasks:
- Copy .env value to .env file in project directory. Or, create a .env file and set the environment variables as follows.
NEXT_PUBLIC_CLIENT_ID={{YOUR_CLIENT_ID}}
- Change the Default Callback URI in the console’s input box from the default value
https://sample.furo.one/{{YOUR_CLIENT_ID}}
tohttp://localhost:3000/{{YOUR_CLIENT_ID}}
.
3. Run the Project
Return to the terminal and enter the following command:
yarn dev
You can test the integrated login functionality provided by Furo by going to http://localhost:3000.
Was this page helpful?