feat(auth): Add authorize page
This commit is contained in:
10
README.md
10
README.md
@@ -81,8 +81,8 @@ Error: Cookies can only be modified in a Server Action or Route Handler.
|
||||
Create a `.env.local` file in the root directory:
|
||||
|
||||
```bash
|
||||
SECNEX_API_HOST=http://localhost:3001
|
||||
SECNEX_API_KEY=your_api_key_here
|
||||
SECNEX_AUTH_API_HOST=http://localhost:3001
|
||||
SECNEX_AUTH_API_KEY=your_api_key_here
|
||||
```
|
||||
|
||||
### Installation
|
||||
@@ -243,7 +243,7 @@ The `permissions.json` file defines OAuth scope permissions:
|
||||
- Server Actions use `"use server"` directive
|
||||
- Route Handlers allow cookie modification from Server Components
|
||||
- Cookies are HTTP-only for additional security
|
||||
- The SecNex API must be running at the configured `SECNEX_API_HOST`
|
||||
- The SecNex API must be running at the configured `SECNEX_AUTH_API_HOST`
|
||||
- API credentials should be stored in environment variables (not hardcoded)
|
||||
|
||||
## Tech Stack
|
||||
@@ -273,8 +273,8 @@ For more information, see the [Next.js Deployment Documentation](https://nextjs.
|
||||
|
||||
Make sure to set the following environment variables in your deployment:
|
||||
|
||||
- `SECNEX_API_HOST` - Your SecNex API host URL
|
||||
- `SECNEX_API_KEY` - Your SecNex API key
|
||||
- `SECNEX_AUTH_API_HOST` - Your SecNex API host URL
|
||||
- `SECNEX_AUTH_API_KEY` - Your SecNex API key
|
||||
|
||||
## License
|
||||
|
||||
|
||||
Reference in New Issue
Block a user