chore: pre-release cleanup
- Skip token clear/redirect on 401 for unauthenticated requests - Fix typo in test secret key in restart-backend script - Remove completed plan documents (entity-relationship-refactor, ux-notification-improvements)
This commit is contained in:
@@ -94,7 +94,7 @@ export async function api<T = any>(
|
||||
}
|
||||
}
|
||||
|
||||
if (res.status === 401) {
|
||||
if (res.status === 401 && token) {
|
||||
clearTokens();
|
||||
if (typeof window !== 'undefined') {
|
||||
window.location.href = '/login';
|
||||
|
||||
Reference in New Issue
Block a user