This is a sample project for Logto's Next.js SDK.
You can configure the sample project by modifying the libraries/config.js
file, or by setting the following environment variables:
key | description | example |
---|---|---|
APP_ID | The app ID of your application | my-app |
APP_SECRET | The app secret of your application | my-secret |
ENDPOINT | The endpoint of your Logto server | http://localhost:3001 |
BASE_URL | The base URL of this application | http://localhost:3000 |
COOKIE_SECRET | The secret for cookie encryption | my-cookie-secret |
RESOURCES | Optional, the API resource identifier, split with comma | http://localhost:3003/,http://localhost:3004/] |
SCOPES | Optional, the scopes to grant, split with comma | read:users,write:users |
Learn more about resource and scopes in the Logto RBAC Documentation.