1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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