Skip to main content

authentication

Sessions, sign-in/sign-up flows, OAuth, magic links, or organization context on the session.

ソース情報

リポジトリ
latitude-dev/latitude-llm
ソースの最終更新活動
2026年3月31日 12:27
検出された SKILL.md の言語
英語
スター
4,742
フォーク
408

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
authentication
description
Sessions, sign-in/sign-up flows, OAuth, magic links, or organization context on the session.
# Authentication (Better Auth) **When to use:** Sessions, sign-in/sign-up flows, OAuth, magic links, or organization context on the session. ## Stack - **`@platform/db-postgres`** exposes **`createBetterAuth()`** in `packages/platform/db-postgres/src/create-better-auth.ts`, wiring **better-auth** with the Drizzle adapter against the shared Postgres client. - Sessions: `auth.api.getSession({ headers })` → `{ user, session }` with typed fields. - **`User`** includes `id`, `email`, `name` — use those fields directly (no assertions). ## Web app helpers - Session helpers: `apps/web/src/domains/sessions/session.functions.ts` (`getSession`, `ensureSession`, etc.). - **Organization context** is added via the **`customSession`** plugin (multi-tenant product behavior). ## Domain alignment - Auth **intent** flows (login/signup completion) use use-cases from **`@domain/auth`** composed with Postgres repositories — keep policy in domain, wiring in apps. For HTTP boundary rules (who may call what), see [architecture-boundaries](../architecture-boundaries/SKILL.md).
GitHubで見る