codesweetly / react-youtube-playlist

MIT License
3 stars 1 forks source link

API key exposed #5

Open alana314 opened 1 month ago

alana314 commented 1 month ago

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 commented 1 month ago

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.