nuxt-users
Version:
A comprehensive user management module for Nuxt 3 and Nuxt 4 applications with authentication, authorization, database support, and CLI tools
25 lines (24 loc) • 678 B
TypeScript
/**
* Composable to get public paths and accessible paths for current user
* @returns Object containing different categories of accessible paths
*/
export declare const usePublicPaths: () => {
getPublicPaths: () => {
all: any[];
builtIn: {
pages: string[];
api: string[];
};
whitelist: any;
customPasswordResetPath: any;
apiBasePath: any;
};
getAccessiblePaths: () => {
all: any[];
public: any[];
roleBasedPaths: string[];
userRole: any;
};
isPublicPath: (path: string) => boolean;
isAccessiblePath: (path: string, method?: string) => boolean;
};