mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 04:45:08 +03:00
* Draft begins * Starte SvelteKit * Changes * Consolidate creating a client * Final draft * Update apps/docs/content/guides/auth/server-side/creating-a-client.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update apps/docs/content/guides/auth/server-side/creating-a-client.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Rework and simplify * Update apps/docs/content/guides/auth/server-side/creating-a-client.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update apps/docs/content/guides/auth/server-side/creating-a-client.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update apps/docs/content/guides/auth/server-side/creating-a-client.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * improve spacing * last * Simplify example * Prettier * Fix hono, remove old pages, and add redirects * Remove from menu * Update apps/docs/content/guides/auth/server-side/creating-a-client.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Changes --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> Co-authored-by: Alan Daniel <stylesshjs@gmail.com>
21 lines
559 B
TypeScript
21 lines
559 B
TypeScript
import type { Session, SupabaseClient, User } from '@supabase/supabase-js'
|
|
import type { Database } from './database.types.ts' // import generated types
|
|
|
|
declare global {
|
|
namespace App {
|
|
// interface Error {}
|
|
interface Locals {
|
|
supabase: SupabaseClient<Database>
|
|
safeGetSession: () => Promise<{ session: Session | null; user: User | null }>
|
|
session: Session | null
|
|
user: User | null
|
|
}
|
|
interface PageData {
|
|
session: Session | null
|
|
}
|
|
// interface PageState {}
|
|
// interface Platform {}
|
|
}
|
|
}
|
|
|
|
export {} |