new exerimental tools, lessons learned about beatleader authentication (it requires steamworks sdk and steam ticket handling)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# sv
|
||||
# Plebsaber.stream
|
||||
|
||||
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
|
||||
BeatLeader‑powered tools for Beat Saber.
|
||||
|
||||
## Creating a project
|
||||
|
||||
@@ -14,6 +14,17 @@ npx sv create
|
||||
npx sv create my-app
|
||||
```
|
||||
|
||||
## BeatLeader OAuth setup
|
||||
|
||||
Set these environment variables (e.g. in your process manager or `.env` when using adapter‑node):
|
||||
|
||||
```
|
||||
BL_CLIENT_ID=your_client_id
|
||||
BL_CLIENT_SECRET=your_client_secret
|
||||
```
|
||||
|
||||
Then start the dev server and visit `/auth/beatleader/login` to authenticate. Tokens are stored in httpOnly cookies and attached to all server‑side BeatLeader API calls.
|
||||
|
||||
## Developing
|
||||
|
||||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
||||
|
||||
Reference in New Issue
Block a user