invite-with-password

Implements app-owned password setup for invited FuseBase users via setFusebaseInitialPassword.

5|2|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/ryan-haver/fusebase-mcp --skill invite-with-password-ryan-haver
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: invite-with-password
Source: https://github.com/ryan-haver/fusebase-mcp/tree/main/apps/client-portal-dashboard/.claude/skills/invite-with-password
Command: npx skills add https://github.com/ryan-haver/fusebase-mcp --skill invite-with-password-ryan-haver

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @fusebase/fusebase-gate-sdk.

What problem does it solve? Invited users in a FuseBase-backed app have no password they know, so the only way in is the platform's password-reset email, which breaks branded onboarding flows. This Skill lets the app own the entire account UI: the invitee sets their first password inside the app's own form and signs in without ever seeing a platform auth page. ## Core Features & Use Cases - First-password setup flow: Detects needsInitialPassword from /auth/context, renders a custom create-password form, and calls the Gate set-initial-password endpoint with the invitee's own token. - Immediate re-authentication: After a successful set (which invalidates the magic-link session), signs the user back in with loginFusebaseUser using the password just chosen. - Edge-case handling: Covers 409 password_already_set responses, 403 platform-flag failures, and fallback to password restore for older accounts. - Use Case: A client portal app invites customers via addOrgUser or createAppMagicLink; each invitee opens the magic link, picks a password in the app's branded form, and is signed in immediately. ## Quick Start Ask the agent to build an invite flow where invited users set their own password inside the app's onboarding form using needsInitialPassword detection and the set-initial-password endpoint.

Frequently Asked Questions about invite-with-password

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I let invited FuseBase users set their own password in my app?▼

Check needsInitialPassword from the /auth/context endpoint; when true, show your own create-password form and POST the password to the Gate set-initial-password endpoint using the invitee's own feature token. Then sign them in with loginFusebaseUser since the magic-link session is dropped.

How to build a custom branded login for a FuseBase client portal?▼

Provision users with addOrgUser or createAppMagicLink, complete the magic-link exchange, then use setFusebaseInitialPassword for first-password setup and loginFusebaseUser for sign-in. Password reset uses requestFusebaseRestoreKey so the app sends its own branded email.

Why does set-initial-password return 403 or 409 errors?▼

A 403 means the platform flag password_invite is off on the target backend or the app-level FBS_FEATURE_TOKEN was used instead of the invitee's token. A 409 means the account already has a password, so route the user to sign-in or password restore instead of retrying.

Does the FuseBase Gate SDK support setFusebaseInitialPassword?▼

Not yet. The @fusebase/fusebase-gate-sdk does not expose setFusebaseInitialPassword, so call the documented Gate endpoint directly with fetch. Switch to the SDK method once sdk_describe shows it is available.

What are the limitations of the initial password flow?▼

It is one-shot per account, acts only on the calling user with no way to target another account, and older accounts provisioned before password-less marking report needsInitialPassword as false. Those accounts must use the password restore flow instead.