type alias FederationEvent

The payload of a signed event, which a home instance sends each instance a user signed in to (POST /api/federation/events): update when their name, email or avatar changed, revoke when their sessions there must end, after a password change or when they withdraw the grant.

Definition

{ type: "update"; claims: IdentityClaims; }
| { type: "revoke"; }

Usage

import { type FederationEvent } from "shared/federation.ts";