mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 20:24:27 -04:00
Fix custom token use in queryFn
This commit is contained in:
parent
e0fb29bd80
commit
5cffeea4fd
@ -54,7 +54,7 @@ export const queryFn = async <Parser extends z.ZodTypeAny>(
|
|||||||
lastUsedUrl = url!;
|
lastUsedUrl = url!;
|
||||||
|
|
||||||
const token =
|
const token =
|
||||||
iToken === undefined && context.authenticated !== false ? await getToken() : undefined;
|
iToken === undefined && context.authenticated !== false ? await getToken() : iToken;
|
||||||
const path = [url]
|
const path = [url]
|
||||||
.concat(
|
.concat(
|
||||||
"path" in context
|
"path" in context
|
||||||
|
Loading…
x
Reference in New Issue
Block a user