fix: async SecureStore token read + prod env fallback

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
René Schober
2026-03-20 16:31:27 +01:00
parent 51f0028883
commit 597e0d9390
2 changed files with 4 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ export const authClient = createAuthClient({
},
auth: {
type: "Bearer",
token: () => SecureStore.getItem(TOKEN_KEY) ?? "",
token: async () => (await SecureStore.getItemAsync(TOKEN_KEY)) ?? "",
},
},
plugins: [