{"repo":"flo-bit/svelte-atproto-client-oauth","free":true,"listed":false,"github":"https://github.com/flo-bit/svelte-atproto-client-oauth","clone":"git clone https://github.com/flo-bit/svelte-atproto-client-oauth.git","description":null,"language":"TypeScript","stars":16,"topics":["atproto","oauth","svelte"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"svelte atproto client oauth demo try it here: http://flo-bit.dev/svelte-atproto-client-oauth/ this is a scaffold for how to get client side oauth working with sveltekit and atproto using the atcute libraries. useful when you want people to login with atproto to your static sveltekit site. how to install either clone this repo 1. clone this repo 2. run pnpm install 3. run pnpm run dev 4. go to http://127.0.0.1:5179 5. if necessary change base in svelte.config.js 6. change the SITE in $lib/atproto/settings.ts to your website 7. setup the correct permissions (see below) or manually add to your own project 1. copy the src/lib/atproto folder into your own project 2. also copy the src/routes/oauth-client-metadata.json folder into your project 3. initialize the client in your src/routes/+layout.svelte 4. add server and port to your vite.config.ts 5. install the dependencies 6. (optionally) set your base in svelte.config.js (e.g. for deploying to github pages: base: '/your-repo-name/' ) while keeping it as '' in development. 6. change the SITE in $lib/atproto/settings.ts to your website 7. setup the correct permissions (see below) how to use set permissions you request on sign-in in $lib/atproto/settings.ts (see commented out examples for more info) - add collections to the collections array - rpcs for authenticated proxied requests - blobs for uploading blobs change sign up pds If you want to allow sign-up, change the devPDS and prodPDS variables in $lib/atproto/settings.ts to a pds","default_branch":null,"files":null,"tree":[],"storefront":"/r/flo-bit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/flo-bit/svelte-atproto-client-oauth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}