mirror of
https://github.com/strapi/strapi.git
synced 2025-08-05 07:16:02 +00:00
Update branch
Merge branch 'master' of https://github.com/strapi/strapi into add-overlay-blocker
This commit is contained in:
commit
0d4b5003df
@ -48,8 +48,7 @@ function checkTokenValidity(response) {
|
|||||||
return fetch(`${strapi.backendURL}/user/me`, options)
|
return fetch(`${strapi.backendURL}/user/me`, options)
|
||||||
.then(resp => {
|
.then(resp => {
|
||||||
if (response.status === 401) {
|
if (response.status === 401) {
|
||||||
const { origin } = window.location;
|
window.location = `${strapi.remoteURL}/plugins/users-permissions/auth/login`;
|
||||||
window.location = `${origin}/admin/plugins/users-permissions/auth/login`;
|
|
||||||
|
|
||||||
auth.clearAppStorage();
|
auth.clearAppStorage();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user