mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
refactor(app): refactor unauthenticated state management (#2393)
* refactor(app): refactor Authentication service * refactor(app): refactor unauthenticated state management
This commit is contained in:
parent
4f9a8180f9
commit
b5dfaff292
3 changed files with 59 additions and 42 deletions
|
@ -14,9 +14,6 @@ angular.module('portainer')
|
|||
jwtOptionsProvider.config({
|
||||
tokenGetter: ['LocalStorage', function(LocalStorage) {
|
||||
return LocalStorage.getJWT();
|
||||
}],
|
||||
unauthenticatedRedirector: ['$state', function($state) {
|
||||
$state.go('portainer.auth', {error: 'Your session has expired'});
|
||||
}]
|
||||
});
|
||||
$httpProvider.interceptors.push('jwtInterceptor');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue