{"id":46088223,"url":"https://github.com/psegarel/supabase_auth-sveltekit4","last_synced_at":"2026-03-01T17:10:19.617Z","repository":{"id":222585792,"uuid":"757808613","full_name":"psegarel/supabase_auth-sveltekit4","owner":"psegarel","description":"# Supabase Auth / SvelteKit 4 Starter ( Typescript )","archived":false,"fork":false,"pushed_at":"2024-03-04T17:44:01.000Z","size":72,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-03-04T19:22:41.319Z","etag":null,"topics":["authentication","supabase","sveltekit"],"latest_commit_sha":null,"homepage":"","language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/psegarel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-15T02:49:52.000Z","updated_at":"2024-03-02T22:04:51.000Z","dependencies_parsed_at":"2024-02-20T06:23:26.980Z","dependency_job_id":"3e984da3-b89b-449a-a152-98881490974b","html_url":"https://github.com/psegarel/supabase_auth-sveltekit4","commit_stats":null,"previous_names":["psegarel/supabase_auth-sveltekit4"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/psegarel/supabase_auth-sveltekit4","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psegarel%2Fsupabase_auth-sveltekit4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psegarel%2Fsupabase_auth-sveltekit4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psegarel%2Fsupabase_auth-sveltekit4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psegarel%2Fsupabase_auth-sveltekit4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psegarel","download_url":"https://codeload.github.com/psegarel/supabase_auth-sveltekit4/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psegarel%2Fsupabase_auth-sveltekit4/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29976272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","supabase","sveltekit"],"created_at":"2026-03-01T17:10:19.119Z","updated_at":"2026-03-01T17:10:19.612Z","avatar_url":"https://github.com/psegarel.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Supabase Auth / SvelteKit 4 Starter ( Typescript )\n\nEmail Auth with PKCE flow for SSR\nEmail authentication in your server-side rendering (SSR) application using the new @supabase/ssr package. \nAPI endpoint for verifying the token_hash along with the type to exchange token_hash for the user's session, which is set as a cookie for future requests made to Supabase.\n\n### Check the docs...\n\n```bash\nhttps://supabase.com/docs/guides/auth/server-side/email-based-auth-with-pkce-flow-for-ssr?framework=sveltekit\nhttps://supabase.com/docs/guides/auth/auth-helpers/sveltekit\n```\n\nYou can also check this article:\n[Securing Your SvelteKit App with Supabase Authentication](https://www.patrick-segarel.com/blog/securing-your-sveltekit-app-with-supabase-authentication).\n\nBut I worked on this starter because I found many things to be unclear or even wrong, the logic remains though.\nMake sure to check how to set up a project with an .env file:\n\n```bash \n# Values to be found on your Supabase project dashboard\n#https://supabase.com/dashboard/project/[YOUR_PROJECT_ID]/settings/api\nPUBLIC_SUPABASE_URL=\nPUBLIC_SUPABASE_ANON_KEY=\n```\n\n\n\n### Update email templates with URL for API endpoint\n\n#### Confirm sign up\n\n```bash \n\u003ch2\u003eConfirm your signup!\u003c/h2\u003e\n\n\u003cp\u003eFollow this link to confirm your user:\u003c/p\u003e\n\u003cp\u003e\n  \u003ca href=\"{{ .SiteURL }}/api/auth/callback?token_hash={{ .TokenHash }}\u0026type=email\"\n    \u003eConfirm your email\u003c/a\n  \u003e\n\u003c/p\u003e\n```\nHere the api endpoint is /api/auth/callback, but this is up to you.\n\n#### Reset Password\n\n```bash \n\u003ch2\u003eReset Password\u003c/h2\u003e\n\n\u003cp\u003eFollow this link to reset the password for your user:\u003c/p\u003e\n\u003cp\u003e\n  \u003ca\n    href=\"{{ .SiteURL }}/api/auth/callback?token_hash={{ .TokenHash }}\u0026type=recovery\u0026next=/update-password\"\n    \u003eReset Password\u003c/a\n  \u003e\n\u003c/p\u003e\n```\nCheck the other email templates, depending on your application needs\n\n### TailwindCSS \u0026 Daisy UI\nA personal choice...","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsegarel%2Fsupabase_auth-sveltekit4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsegarel%2Fsupabase_auth-sveltekit4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsegarel%2Fsupabase_auth-sveltekit4/lists"}