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