Firebase magic link portal
My personal collection of custom AI Agent Skills for Claude Code. Contains production-grade architectural patterns and workflows for React, Firebase, Tailwind CSS, and Zustand.
npx -y skills add Chagai33/my-agent-skills --skill firebase-magic-link-portalAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Secure, temporary access portal using Magic Links and restricted tokens
SKILL.md
1.9 KB, as published. Nobody here has run it
firebase-magic-link-portal
Overview
This skill provides an architecture for a "Guest Portal" or temporary access system. It is designed for scenarios where external users (who do not have full accounts) need to perform specific, restricted actions in the app via a Magic Link (e.g., submitting a form, updating a specific entity, RSVPing).
The system uses:
- Client-side short-lived session storage.
- A backend validation layer (e.g., Firebase Cloud Functions) that issues and verifies a restricted token.
- UI components for generating/sharing the links and reviewing the guest activity.
Golden Templates
The templates/ folder contains extracted files showing how this system fits together:
guest.service.ts: API client class bridging the frontend to backend token issuance and restricted operations.GuestPortalManagement.tsx: The UI for admins to generate the magic links and share them via WhatsApp/Copy.GuestActivityModal.tsx: The UI for admins to review and approve/delete the submissions made by users originating from the portal.
What NOT to do (Negative Constraints)
- DO NOT grant full database read/write access to guests - always use strict Firebase Security Rules (or equivalent backend validation) to ensure guests can only access the exact entity their token specifies.
- DO NOT store sensitive auth tokens insecurely. Use HTTP-only cookies if possible, or short-lived
sessionStoragefor temporary access tokens, but NEVER permanentlocalStorage. - DO NOT hardcode Firebase credentials or secrets anywhere in the client code. All validation must happen in the backend.
- DO NOT allow the magic links to live forever. Links or the resulting tokens must have strict expiration times (e.g., 30 minutes).