fix getCreds no auth is blocking api client

This commit is contained in:
tdgao
2026-03-31 15:17:58 -06:00
parent 703811b8f2
commit 2c993fb4fb
+1 -1
View File
@@ -129,7 +129,7 @@ const tauriApiClient = new TauriModrinthClient({
userAgent: `modrinth/theseus/${getVersion()} (support@modrinth.com)`,
features: [
new AuthFeature({
token: async () => (await getCreds()).session,
token: async () => (await getCreds())?.session,
}),
new PanelVersionFeature(),
],