@resistdesign/voltra
    Preparing search index...

    Type Alias RouteAuthConfig

    A configuration to specify the authentication required to access a route.

    type RouteAuthConfig = {
        allowedRoles?: string[];
        anyAuthorized?: boolean;
        public?: boolean;
    }
    Index

    Properties

    allowedRoles?: string[]

    Explicit list of role names permitted to access the route.

    anyAuthorized?: boolean

    When true, any authenticated user is allowed.

    public?: boolean

    When true, the route is publicly accessible without auth.