Member Junction
    Preparing search index...

    Parameters for creating a new Identity Claim

    interface CreateClaimParams {
        ClaimTypeID?: string;
        ClaimTypeName?: string;
        EntityID?: string;
        ExpiresAt?: Date;
        ExpiresInDays?: number;
        MagicLinkInviteID?: string;
        Metadata?: Record<string, unknown>;
        NormalizedEmail?: string;
        Payload?: Record<string, unknown>;
        RecordID?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    ClaimTypeID?: string

    ID of the IdentityClaimType (if Name is not provided)

    ClaimTypeName?: string

    Name of the IdentityClaimType

    EntityID?: string

    Optional polymorphic target entity ID

    ExpiresAt?: Date

    Exact expiry instant, for claims shorter than a day (whole days cannot express "ten minutes"). Takes precedence over ExpiresInDays. Must be a valid instant in the future.

    ExpiresInDays?: number

    Lifespan in days before expiration (defaults to ClaimType.DefaultExpirationDays)

    MagicLinkInviteID?: string

    Optional linked MagicLinkInvite ID for token verification

    Metadata?: Record<string, unknown>

    Optional tracking metadata

    NormalizedEmail?: string

    Email address of the intended recipient/claimant.

    Optional ONLY for claim types whose Configuration sets RequireToken: true. Such a claim is redeemed by its token alone, so it needs no recipient — for example, a link that hands an anonymous visitor's work to whoever signs in holding it. The claim is stored with an empty NormalizedEmail, which no account can match, so email-match redemption and auto-claim on login can never reach it. Every other claim type still requires an email.

    Payload?: Record<string, unknown>

    Optional payload data for driver consumption

    RecordID?: string

    Optional target record primary key ID