feat: add USER_HAS_NO_ROLES_ERR to AuthErrorCode

This commit is contained in:
Sheldon Guo 2025-03-10 16:14:48 +08:00
parent 1320b59b2f
commit b5b142e1e2

View File

@ -20,6 +20,7 @@ const AuthErrorCode = {
EXPIRED_SESSION: 'EXPIRED_SESSION' as const,
NOT_EXIST_USER: 'NOT_EXIST_USER' as const,
SKIP_TOKEN_RENEW: 'SKIP_TOKEN_RENEW' as const,
USER_HAS_NO_ROLES_ERR: 'USER_HAS_NO_ROLES_ERR' as const,
};
function removeBasename(pathname, basename) {