Skip to content

feat(auth): add WalletRequired route guard for member screens#65

Open
GBOYEE wants to merge 1 commit into
Adamantine-guild:mainfrom
GBOYEE:feat/wallet-route-guards
Open

feat(auth): add WalletRequired route guard for member screens#65
GBOYEE wants to merge 1 commit into
Adamantine-guild:mainfrom
GBOYEE:feat/wallet-route-guards

Conversation

@GBOYEE

@GBOYEE GBOYEE commented Jun 29, 2026

Copy link
Copy Markdown

Summary

Adds a reusable WalletRequired route guard component that screens requiring a connected wallet. Unauthenticated users see a connect-wallet prompt instead of member-only data.

Changes

  • src/components/WalletRequired.tsx — New wrapper component
  • app/guilds.tsx — Wrapped with WalletRequired
  • app/guilds/[guildId].tsx — Wrapped with WalletRequired
  • app/settings.tsx — Wrapped with WalletRequired
  • tests/walletRequired.test.tsx — Tests for all states

Fixes #49

@GBOYEE GBOYEE force-pushed the feat/wallet-route-guards branch from 28c1861 to 3813809 Compare June 29, 2026 22:40
Wraps /guilds, /guilds/[guildId], and /settings with a wallet
connection guard that redirects unauthenticated users to /profile.

- Add WalletRequired component with hydration-aware rendering
- Apply guard to guild list, guild detail, and settings screens
- Add tests covering hydrated/unhydrated/connected/disconnected states
@GBOYEE GBOYEE force-pushed the feat/wallet-route-guards branch from 3813809 to 75a81fd Compare June 29, 2026 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Wallet Route Guards for Member Screens

1 participant