This commit is contained in:
John Livingston 2024-04-18 11:06:04 +02:00
parent 51c8a573c7
commit b0085dbf45
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC

View File

@ -33,11 +33,12 @@ 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
}
} }
} }