slickgpt icon indicating copy to clipboard operation
slickgpt copied to clipboard

Encrypt openai token in browser local storage via Cryptr

Open Merkie opened this issue 2 years ago • 4 comments

Alright, so I added basic encryption with a SITE_KEY environment variable. Don't merge yet. I'll have to clean up some more stuff, most likely. Also, is there any reason why you disable SSR? If we are running on Vercel, we can use SSR to our advantage, no? It would make implementing a database much easier.

Merkie avatar Nov 09 '23 00:11 Merkie

@Merkie is attempting to deploy a commit to the ShipBit Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Nov 09 '23 00:11 vercel[bot]

you can also see that i broke out the openai token into its own local storage value and store. just FYI. it is stored in localstorage and encrypted/decrypted on the server.

Merkie avatar Nov 09 '23 00:11 Merkie

Ok, im pretty happy with where it stands now lmk what you think.

Merkie avatar Nov 09 '23 00:11 Merkie

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
slickgpt ❌ Failed (Inspect) Nov 9, 2023 8:24am

vercel[bot] avatar Nov 09 '23 08:11 vercel[bot]