aboutsummaryrefslogtreecommitdiff
path: root/src/routes/api/oauth
Commit message (Collapse)AuthorAgeFilesLines
* fix(security): mark auth cookies Secure outside localhostFuwn27 hours1-1/+0
| | | | | | | | | | The user and logout cookies were set with secure:false, so the AniList tokens the user cookie carries could traverse plaintext HTTP. Drop the override and let SvelteKit's default apply (Secure everywhere except http://localhost), giving Secure in production and on https://due.localhost while keeping plain-http local dev working. httpOnly is unchanged (the client reads the token from layout data; tightening that is tracked separately as the architectural part of C2).
* style: apply biome autofixes and resolve remaining lint findingsFuwn4 days2-2/+2
| | | | | | | | | | | | | | Auto-fixed cosmetic findings (import ordering, obj["k"]->obj.k, optional chaining, template literals, Date.now, parseInt radix, useless ternaries/ switch cases). Resolved the non-autofixable rest by hand: - Senpy: static-only class -> object literal (no this/static reliance). - app.html: var global shim -> window.global = window (keeps the shim, drops the unused-var flag). - biome-ignore with rationale for the logout document.cookie clear and the holodule scrape non-null assertion. Verified: biome check 0 diagnostics, svelte-check 0/0, 24/24 unit tests.
* Revert "fix(api): drop unused redirect query param from oauth refresh"Fuwn2026-04-181-1/+3
| | | | This reverts commit 13226aaeb7c4dc1ce01074ef1ba1eeb87b53d5f5.
* fix(api): drop unused redirect query param from oauth refreshFuwn2026-04-181-3/+1
| | | | | | | | | | | | The refresh endpoint accepted a ?redirect query param and, when present, called redirect(303, "/") instead of returning the refreshed token as JSON. The target was hardcoded to "/" regardless of the param's value, so the feature was dead — and the pattern of reading a "redirect" param invited future open-redirect bugs if someone wired the value through to redirect() directly. The sole in-tree caller (feeds/activity-notifications) reads the JSON response, so always return JSON and drop the redirect import.
* chore(biome): drop formatter style overridesFuwn2026-03-012-37/+37
|
* deps(sveltekit): Migrate to SvelteKit 2Fuwn2026-01-221-1/+1
|
* fix: Throw redirectsFuwn2025-12-011-1/+1
|
* deps(SvelteKit): Migrate to SvelteKit 2Fuwn2025-06-091-1/+1
|
* chore(prettier): use spaces instead of tabsFuwn2024-10-092-31/+31
|
* feat: stronger logoutFuwn2024-02-061-3/+2
|
* refactor(utility): move helpers to utilityFuwn2024-01-131-1/+1
|
* refactor(api): move animeschedule oauthFuwn2024-01-061-17/+0
|
* refactor(api): simple oauth handlerFuwn2024-01-062-60/+25
|
* chore: remote debug logsFuwn2024-01-021-1/+0
|
* feat(oauth): add animeschedule backFuwn2024-01-011-0/+0
|
* feat(error): more error debuggingFuwn2023-12-151-1/+3
|
* feat(notifications): refresh tokenFuwn2023-12-151-25/+18
|
* feat: https and animeschedule oauthFuwn2023-12-081-0/+35
|
* fix(earthly): environment variable typesFuwn2023-12-072-5/+5
|
* feat(oauth): refresh token routeFuwn2023-09-172-0/+70
|
* refactor(oauth): move to single pathFuwn2023-09-131-34/+0
|
* refactor(oauth): move to apiFuwn2023-09-131-0/+34