Try fix oauth (#4848)

This commit is contained in:
Denis Bykhov 2024-03-01 17:33:13 +06:00 committed by GitHub
parent 94f1b86957
commit ec9e63b1a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -862,7 +862,10 @@ export async function getSessionLoginInfo (): Promise<LoginInfo | WorkspaceLogin
}
try {
const response = await fetch(concatLink(accountsUrl, '/auth'))
const response = await fetch(concatLink(accountsUrl, '/auth'), {
method: 'GET',
credentials: 'include'
})
const result = await response.json()
return result
} catch (err: any) {