AutoBE
    Preparing search index...

    Auth-lifecycle action an operation performs.

    Used as IAuthorization.lifecycle. A join registers a new account, a login validates credentials, and a refresh renews a token. All three are publicly attemptable, so the actor named here is the identity the resolved connection gains — not a caller guard (that is IAuthorization.access).

    interface IAuthorizationLifecycle {
        actor: string & CamelCasePattern & MinLength<1>;
        roles: (string & CamelCasePattern)[] | null;
        type: "login" | "join" | "refresh";
    }
    Index

    Properties

    Properties

    actor: string & CamelCasePattern & MinLength<1>

    Actor identity the resolved connection gains. MUST match a database user type and an analyzed actor (AutoBeAnalyze.IActor).

    roles: (string & CamelCasePattern)[] | null

    Business roles (grades) the connection holds immediately after this lifecycle action — e.g. the actor's default join role — or null when no specific grade is conferred at lifecycle time. Each entry MUST be a role declared on the actor's analyzed roles (AutoBeAnalyze.IActorRole).

    type: "login" | "join" | "refresh"

    Lifecycle kind:

    • "login": Credential validation operations
    • "join": Account registration operations
    • "refresh": Token renewal operations