tempfix: possibly fix site not returning user info
This commit is contained in:
1 parent
f420ced79c
commit
95f67437ec
2 files changed
+5
-13
No files matched your search
+2
-1
@@ -65,10 +65,11 @@ export function client({
|
||||
|
||||
let jwt = auth ? auth : get(profile)?.jwt
|
||||
|
||||
let headers = jwt ? { Authorization: `Bearer ${jwt}` } : { Authorization: '' }
|
||||
let headers = jwt ? { Authorization: `Bearer ${jwt}` } : {}
|
||||
|
||||
return new LemmyHttp(instanceToURL(instanceURL), {
|
||||
fetchFunction: (input, init) => customFetch(func, input, init, jwt),
|
||||
//@ts-ignore
|
||||
headers: headers,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user