I am building a project with nuxt and i want to provide an oauth2 register/login to users. I have already seen and example with nuxt from @Atinux in the following link but if i am not wrong the client_id and secret are stored in the local storage and in the env variables which are accessible from both server and client side. I don't think that this is a good practice because anyone can grab them and use them. Does anyone knows a way to store them in a more secure way?
Atinux oauth example. https://github.com/nuxt/example-auth0
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2167">#c2167</a>)</em></sub></div>