mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-18 17:38:20 +02:00
Remove ref to the now useless autolock view
This commit is contained in:
@@ -69,7 +69,7 @@ export const httpClientFactory = (endpoint = 'api') => {
|
||||
// api calls are stateless so when user inactivity is detected
|
||||
// by the backend middleware, it cannot logout the user directly
|
||||
// so it returns a 418 response.
|
||||
// We catch the 418 response and push the user to the autolock view
|
||||
// We catch the 418 response and log the user out
|
||||
if ( error.response.status === 418 ) {
|
||||
const user = useUserStore()
|
||||
user.logout()
|
||||
|
Reference in New Issue
Block a user