1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B #5889: prioritize the externalToken (#2205)

(cherry picked from commit 5e84054a450427c46df9983f98a919296fbce8c1)
This commit is contained in:
Jorge Miguel Lobo Escalona 2022-06-30 10:51:14 +02:00 committed by Tino Vazquez
parent e96f9b0c7b
commit 0274dc5c05

View File

@ -69,7 +69,7 @@ const AuthLayout = ({ subscriptions = [], children }) => {
useEffect(() => {
if (!jwt) {
const token = findStorageData(JWT_NAME) || findExternalToken()
const token = findExternalToken() || findStorageData(JWT_NAME)
token && changeJwt(token) && storage(JWT_NAME, token)
}