Fix.
This commit is contained in:
parent
51c8a573c7
commit
b0085dbf45
@ -33,13 +33,14 @@ async function getLocalAuthentInfos (
|
|||||||
const refreshToken = window.localStorage.getItem('refresh_token') ?? ''
|
const refreshToken = window.localStorage.getItem('refresh_token') ?? ''
|
||||||
if (tokenType === '' && accessToken === '' && refreshToken === '') {
|
if (tokenType === '' && accessToken === '' && refreshToken === '') {
|
||||||
console.info('User seems not to be logged in.')
|
console.info('User seems not to be logged in.')
|
||||||
return false
|
// We must continue, for OIDC workflow.
|
||||||
}
|
peertubeAuthHeader = null
|
||||||
|
} else {
|
||||||
peertubeAuthHeader = {
|
peertubeAuthHeader = {
|
||||||
Authorization: tokenType + ' ' + accessToken
|
Authorization: tokenType + ' ' + accessToken
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let oidcHeaders: any
|
let oidcHeaders: any
|
||||||
// When user has used the External OIDC mechanisme to create an account, we got a token in sessionStorage.
|
// When user has used the External OIDC mechanisme to create an account, we got a token in sessionStorage.
|
||||||
|
Loading…
Reference in New Issue
Block a user