mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 03:55:59 +00:00
fix getCreds no auth is blocking api client
This commit is contained in:
@@ -129,7 +129,7 @@ const tauriApiClient = new TauriModrinthClient({
|
|||||||
userAgent: `modrinth/theseus/${getVersion()} (support@modrinth.com)`,
|
userAgent: `modrinth/theseus/${getVersion()} (support@modrinth.com)`,
|
||||||
features: [
|
features: [
|
||||||
new AuthFeature({
|
new AuthFeature({
|
||||||
token: async () => (await getCreds()).session,
|
token: async () => (await getCreds())?.session,
|
||||||
}),
|
}),
|
||||||
new PanelVersionFeature(),
|
new PanelVersionFeature(),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user