ShipBit / slickgpt

SlickGPT is a light-weight "use-your-own-API-key" web client for the OpenAI API written in Svelte. It offers GPT-4 integration, a userless share feature and other superpowers.
https://slickgpt.vercel.app
MIT License
461 stars 99 forks source link

Encrypt openai token in browser local storage via Cryptr #75

Open Merkie opened 8 months ago

Merkie commented 8 months ago

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.

vercel[bot] commented 8 months ago

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

A member of the Team first needs to authorize it.

Merkie commented 8 months ago

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 commented 8 months ago

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

vercel[bot] commented 8 months ago

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