1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-08-24 17:49:28 +03:00

B #5889: prioritize the externalToken (#2205)

This commit is contained in:
Jorge Miguel Lobo Escalona
2022-06-30 10:51:14 +02:00
committed by GitHub
parent a11afb1746
commit 5e84054a45

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)
}