Skip to content

Invitation link throws ApolloError: permission denied for table users when the invitee is already signed‑in #867

@underbluewaters

Description

@underbluewaters

Description

Several users reported that clicking an email invitation link to Blue Prosperity Vanuatu fails with the following error:

Image

Hypothesis

The invitation acceptance mutation or query touches the users table under RLS.
A stale or invalid JWT causes the backend to fail the permission check, even though the UI session still appears valid.
Refreshing the token (sign-out/in) resolves the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions