#14672·nocodb

Bug: Base invite link always fails with "Invalid invite url" — invite token is never persisted (self-hosted, SMTP enabled)

Author: christophe39Created Sep 28, 2026Updated Sep 28, 2026

Please confirm that the bug report does not already exist

  • I confirm there is no existing issue for this bug.

Steps to reproduce

  1. As a super admin, open a base > Share / Manage base access.
  2. Invite an email address that does not exist yet on the instance (tested both from the UI and from the API POST /api/v2/meta/bases/{baseId}/users — same result).
  3. The invited person receives the "You've been invited to a Base" email.
  4. Click "Accept Base Invite" → opens https://<site>/signup/<uuid>.
  5. Enter the invited email and a new password, click SIGN UP.

Actual behavior

  • The signup page shows "Invalid invite url".
  • Browser console: POST /api/v1/auth/user/signup → 400.

Investigation (read-only queries on the metadata database)

  • The user row is created in nc_users_v2 (with a random password and the base role in nc_base_users_v2), but invite_token and invite_token_expires are NULL.
  • This is the case for every user invited on this instance since August, from the UI or from the API.
  • I searched the whole metadata database (full data dump of the public schema) for the token contained in the emailed link (/signup/<uuid>): it is stored nowhere.
  • So the token sent by email is never persisted, and the signup endpoint cannot match it.
  • The link itself is not altered: the email provider's click-tracking redirect resolves to the exact https://<site>/signup/<uuid> URL.
  • Not the same as #11905 (same error message, but there the cause was a stale token after "Resend invite").

Desired Behavior

The invite token should be persisted when the invitation is created, so that clicking "Accept Base Invite" lets the invited person set their password and access the base.

Current workaround: "Forgot password" on the sign-in page works (the reset token is correctly stored in nc_users_v2.reset_password_token), but it is not discoverable for invited users, who naturally click the invite button first.

Project Details

NocoDB used as docker : true NocoDB version : 2026.08.1 Database used in NC_DB URL : pg Self-hosted with Coolify, behind Traefik (HTTPS) SMTP configured through environment variables (NC_SMTP_HOST / PORT / USERNAME / PASSWORD / FROM, NC_SMTP_SECURE=false, STARTTLS on port 587) NC_SITE_URL set to the public URL

Attachments

Image