Wellington Capoia
Wellington Capoia
Explore posts from servers
NNuxt
Created by Wellington Capoia on 10/23/2024 in #❓・help
How to encrypt on the frontend without exposing the key
I need to encrypt the user's password to send to the backend (and then I will decrypt and encrypt it again with Argon2) because when I send it unencrypted in the browser's network tab, it is exposed. However, whenever I try, I always run into the problem that the key used for encryption/decryption is exposed on the frontend. If I set it as a PRIVATE ENV variable, I can only access it on the Nuxt server, which is also a problem since it will display the text/password that I want to encrypt in the request to the server. How should I do this?
13 replies
NNuxt
Created by Wellington Capoia on 3/2/2023 in #❓・help
How to use asset as background image on style inline?
No description
4 replies
NNuxt
Created by Wellington Capoia on 12/9/2022 in #❓・help
Service workers
Hi guys, i`m trying to implement Pusher on my nuxt application, but i cant find anything online about it (only vue2). The first thing that i need to do is register a service worker, i see in the nuxt3 docs that server engine have suporte to it, but i cant find exemples to how to implement it, someone can help me ?
1 replies
NNuxt
Created by Wellington Capoia on 11/24/2022 in #❓・help
UseCookie has a nesting limit?
Hello, I'm trying to persist the store (pinia) but I was having trouble adding an object like this to the cookies: https://api.jsonbin.io/v3/qs/637fb32c65b57a31e6c26bfb However if I delete the array of users it creates the cookie normally, when not deleted it simply generates no error but also does not create the cookie. (Note: I was doing it by hand, because all the existing persistence libraries weren't persisting, probably due to the same problem, after all they all use nuxt's composable.
4 replies