Skip to content

Weather card: auth check, opt-in location, 30-min cache#543

Merged
asim merged 1 commit intomainfrom
claude/add-wallet-transfers-74PHC
Apr 7, 2026
Merged

Weather card: auth check, opt-in location, 30-min cache#543
asim merged 1 commit intomainfrom
claude/add-wallet-transfers-74PHC

Conversation

@asim
Copy link
Copy Markdown
Member

@asim asim commented Apr 7, 2026

Summary

  • Logged-out users see "Log in" link, no API call
  • First visit: user clicks to opt in to location sharing
  • After opt-in: auto-fetches, cached in localStorage for 30 min
  • No credits spent until user explicitly enables + cache expires
  • If geolocation denied, resets opt-in

https://claude.ai/code/session_01GRGLA9yj7BpqKiyi6xFwnm

- Only fetches for logged-in users (checks session cookie)
- Guests see "Log in for weather" link
- First visit: user clicks "Enable location" to opt in
- After opt-in: auto-fetches with 30-min localStorage cache
- No credit spent until user explicitly enables + cache expires
- If geolocation denied, clears opt-in so user isn't stuck

https://claude.ai/code/session_01GRGLA9yj7BpqKiyi6xFwnm
@asim asim force-pushed the claude/add-wallet-transfers-74PHC branch from 46cc782 to a733d78 Compare April 7, 2026 13:39
@asim asim merged commit 33e496a into main Apr 7, 2026
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.

2 participants