IFClite TypeScript API
    Preparing search index...

    Type Alias RegistryAuthorizeFn

    RegistryAuthorizeFn: (
        token: string | undefined,
        method: string,
    ) => Promise<Principal | null> | Principal | null

    Resolve the acting principal, or null to reject with 401.

    Type Declaration

      • (
            token: string | undefined,
            method: string,
        ): Promise<Principal | null> | Principal | null
      • Parameters

        • token: string | undefined
        • method: string

        Returns Promise<Principal | null> | Principal | null