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

API key exposed #5

Open
alana314 opened this issue Jul 26, 2024 · 1 comment
Open

API key exposed #5

alana314 opened this issue Jul 26, 2024 · 1 comment

Comments

@alana314
Copy link

Thanks for your work on this. I tried this library and committed it to github and got two alerts that my youtube data v3 API key was exposed. I revoked it, is there a way to use this without the API key client side?

@oluwatobiss
Copy link
Member

Ah! Yes. ReactJS exposes API keys by default, but you can use Server Actions to hide them on the client side. Here's the Next.js doc for implementing Server Actions if Next is your framework.

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