Search Documentation

Search API endpoints, webhooks, tools, and guides

On this page6 sections
Is this helpful?
Quick Actions
Download OpenAPI.json
POST/api/auth/force-syncAuthenticationPermission: users.update

Force Sync User Metadata

Re-synchronizes a target tenant user's database role, tenant ID, and permissions to Supabase `app_metadata`. Enforces anti-escalation checks and blocks integration tokens.

Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).

Request

Provide the following fields in the request payload.

Body application/json
emailstring (email)required

Target user email within the active tenant whose auth metadata will be resynchronized.

Responses

Select a status code to inspect schema.

User metadata synchronized successfully.application/json
successenum('true')

Success (true).

messagestring

Message.

dataobject | null

Response payload or null.

POST/api/auth/force-sync
curl -X POST "https://api.invoger.com/api/auth/force-sync" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{ "email": "cashier@invoger.com" }'
Interactive playground

Response

application/json
{
  "success": true,
  "message": "Success",
  "data": {
    "message": "Successfully synced metadata for cashier@invoger.com",
    "debug_info": "Please re-login to see changes."
  }
}