Built with Next.js, Coin Auth is a luxury furniture store that has implemented Coinbase Commerce to accept crypto payments from customers.
Node install npm and use node version v18.2.0
Install dependencies
npm install
Create a .env file in the root of the directory and plugin your apps OAuth credentials
NEXT_PUBLIC_CLIENT_ID={{YOUR_CLIENT_ID}
NEXT_PUBLIC_CLIENT_SECRET={{YOUR_CLIENT_SECRET}}
NEXT_PUBLIC_BASE_URL=https://api.coinbase.com
NEXT_PUBLIC_REDIRECT_URI={{YOUR_REDIRECT_URI}}}
NEXT_PUBLIC_OAUTH_BASE_URL=https://www.coinbase.com
NEXT_PUBLIC_ENCODED_REDIRECT_URL=http://localhost:3000/
Run the development server:
```bash
npm run dev
Open http://localhost:3000 with your browser to see the result.