<!-- start pr-codex -->
## PR-Codex overview
The focus of this PR is to enhance authentication and authorization features using Thirdweb for the `playground-web` app.
### Detailed summary
- Updated `client.ts` to handle secret key for Thirdweb client
- Modified authentication logic in `auth-button.tsx` and `basic-auth.tsx`
- Added gated content feature in `gated-content.tsx`
- Updated page layout and content for authentication in `page.tsx`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
10 lines
436 B
Bash
10 lines
436 B
Bash
NEXT_PUBLIC_THIRDWEB_CLIENT_ID=""
|
|
|
|
# the DOMAIN is the domain of the application
|
|
NEXT_PUBLIC_THIRDWEB_AUTH_DOMAIN=
|
|
# Get your secret key from the thirdweb dashboard: https://thirdweb.com/create-api-key
|
|
THIRDWEB_SECRET_KEY=
|
|
# A private key that will be used to sign the JWT for the `jwt-cookie` authentication method
|
|
# this does *not* need to hold any funds, just needs to be a valid private key to sign with
|
|
THIRDWEB_ADMIN_PRIVATE_KEY=
|