mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-03 18:47:25 +01:00
removed legacy remember me redirect
This commit is contained in:
1 parent
d4026ce60f
commit
97b85334a9
10 files changed
+91
-116
No files matched your search
@@ -39,7 +39,6 @@ if (app.pb.authStore.isValid) {
|
||||
// clear the store only on invalidated/expired token
|
||||
const status = err?.status << 0;
|
||||
if (status == 401 || status == 403) {
|
||||
app.utils.rememberPath();
|
||||
app.pb.cancelAllRequests();
|
||||
app.pb.authStore.clear();
|
||||
}
|
||||
@@ -231,7 +230,6 @@ window.app.checkApiError = function(err, showToast = true) {
|
||||
|
||||
// unauthorized
|
||||
if (statusCode === 401 && window.location.hash != LOGIN_PATH) {
|
||||
app.utils.rememberPath();
|
||||
app.pb.cancelAllRequests();
|
||||
return app.pb.authStore.clear();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user