managarten/apps/picture/apps/web
Till-JS feaf27dd14 feat(auth): implement cross-subdomain SSO for all web apps
Add Single Sign-On (SSO) support across all mana.how subdomains:

- Add trySSO() method to @manacore/shared-auth that exchanges session
  cookies for JWT tokens
- Add /api/v1/auth/session-to-token endpoint to mana-core-auth service
- Update all 15 web apps to try SSO during auth initialization

SSO Flow:
1. User logs in on any app (e.g., calendar.mana.how)
2. Session cookie is set with Domain=.mana.how
3. When visiting another app (e.g., todo.mana.how), it checks for
   local tokens first
4. If no local tokens, tries SSO via session cookie
5. Session cookie is exchanged for JWT tokens via new endpoint
6. User is automatically authenticated

Apps updated: calendar, chat, clock, contacts, manacore, manadeck,
nutriphi, picture, planta, presi, questions, skilltree, storage,
todo, zitare

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 13:17:04 +01:00
..
docs refactor(picture): remove Supabase dependency, migrate to NestJS backend 2025-12-01 14:22:49 +01:00
src feat(auth): implement cross-subdomain SSO for all web apps 2026-02-02 13:17:04 +01:00
static refactor: restructure 2025-11-26 03:03:24 +01:00
.env.example 🔥 chore(picture): remove PostHog analytics for GDPR compliance 2026-01-28 12:24:22 +01:00
.gitignore refactor: restructure 2025-11-26 03:03:24 +01:00
.npmrc refactor: restructure 2025-11-26 03:03:24 +01:00
.prettierignore refactor: restructure 2025-11-26 03:03:24 +01:00
.prettierrc refactor: restructure 2025-11-26 03:03:24 +01:00
_redirects refactor: restructure 2025-11-26 03:03:24 +01:00
eslint.config.js improve code quality 2025-12-03 23:42:37 +01:00
netlify.toml refactor: restructure 2025-11-26 03:03:24 +01:00
package.json 🐛 fix(mana-core-auth): add explicit urlencoded body parser for OAuth token endpoint 2026-02-01 03:56:17 +01:00
README.md refactor: restructure 2025-11-26 03:03:24 +01:00
svelte.config.js style: auto-format codebase with Prettier 2025-11-27 18:33:16 +01:00
tsconfig.json refactor: restructure 2025-11-26 03:03:24 +01:00
vite.config.ts 🐛 fix(web-apps): fix Vite type compatibility and Svelte 5 store issues 2026-02-01 04:00:29 +01:00

sv

Everything you need to build a Svelte project, powered by sv.

Creating a project

If you're seeing this, you've probably already done this step. Congrats!

# create a new project in the current directory
npx sv create

# create a new project in my-app
npx sv create my-app

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.