Closed brolag closed 1 month ago
The changes involve updates to environment configurations and the introduction of constants for a StarkNet application. The .env.example
file in the apps/snfoundry
directory has been modified to include new environment variables while removing an existing one. Additionally, a new constants file has been added in the apps/web
directory, defining various configurations related to blockchain interactions and application-specific constants.
File(s) | Change Summary |
---|---|
apps/snfoundry/.env.example |
Modified to include ACCOUNT_ADDRESS_SEPOLIA , removed DATABASE_URL , and added new variables: NEXT_PUBLIC_STARKNETKIT_PROJECT_ID , NEXTAUTH_SECRET , NEXT_PUBLIC_BASE_URL , and NEXT_PUBLIC_SIGNER_ADDRESS . |
apps/web/src/constants/index.tsx |
Introduced constants for StarkNet configurations, including CHAIN_ID , NODE_URL , STARKNET_CHAIN_ID , and various token addresses, along with application-specific constants like SIGNER , DOMAIN_NAME , and WELCOME_MESSAGE . |
sequenceDiagram
participant User
participant App
participant StarkNet
User->>App: Accesses application
App->>StarkNet: Retrieves configuration
StarkNet-->>App: Sends constants
App-->>User: Displays application interface
🐇
In the garden of code, where changes bloom,
New variables sprout, dispelling the gloom.
With constants defined for the StarkNet delight,
A rabbit hops forth, in joy and in light.
Celebrate the updates, a fresh start anew,
For in this code world, there's magic to pursue! 🌼✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
This PR introduces a new login flow that allows users to authenticate by signing a message using the Braavos wallet. It integrates with NextAuth for session management, ensuring secure authentication and handling of user accounts.
Key Features:
Braavos Wallet Login:
Session Creation with NextAuth:
Automatic Account Creation:
Secure Route Handling:
https://www.loom.com/share/f97d9699d5384606bc0169b4f4c0d4cc?sid=6d3ed0e6-0c31-4feb-8610-7be5276f5544
Summary by CodeRabbit
Release Notes
New Features
NEXT_PUBLIC_STARKNETKIT_PROJECT_ID
,NEXTAUTH_SECRET
,NEXT_PUBLIC_BASE_URL
,NEXT_PUBLIC_SIGNER_ADDRESS
, andACCOUNT_ADDRESS_SEPOLIA
.CHAIN_ID
,NODE_URL
, andSTARKNET_CHAIN_ID
.Bug Fixes
Refactor
AuthWrapper
.Header
component.Button
component for improved formatting and consistency.Documentation
Chores
package.json
for enhanced functionality.