Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

security: Exposed api key in react hook? #5

Open
chrysb opened this issue Aug 23, 2024 · 1 comment
Open

security: Exposed api key in react hook? #5

chrysb opened this issue Aug 23, 2024 · 1 comment

Comments

@chrysb
Copy link

chrysb commented Aug 23, 2024

A react hook is nice, but this would leak the API key to the client, right?

@kbrgl
Copy link
Member

kbrgl commented Aug 23, 2024

@chrysb Correct. We do not currently have support for issuing keys on behalf of your users, though this is something we've had on the roadmap. We currently recommend people use edge middleware to proxy requests, which adds minimal latency. For an example of this, see https://github.com/ai-ng/swift.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants