fix: async SecureStore token read + prod env fallback
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -18,7 +18,7 @@ export const authClient = createAuthClient({
|
||||
},
|
||||
auth: {
|
||||
type: "Bearer",
|
||||
token: () => SecureStore.getItem(TOKEN_KEY) ?? "",
|
||||
token: async () => (await SecureStore.getItemAsync(TOKEN_KEY)) ?? "",
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
|
||||
Reference in New Issue
Block a user