Skip to content

Commit 2f1f15d

Browse files
committed
Ensure validateApiKey returns whitelisted fields
1 parent eea6efb commit 2f1f15d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli/src/hooks/use-auth-query.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ export async function validateApiKey({
5858
throw new Error('Invalid API key')
5959
}
6060

61-
return authResult
61+
const { id, email } = authResult
62+
63+
return { id, email }
6264
} catch (error) {
6365
// Check if this is a network error
6466
if ((error as any)?.code === 'NETWORK_ERROR') {

0 commit comments

Comments
 (0)