Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mpiorowski/supabase-svelte-ssr

Supabase authentication with SvelteKit SSR
https://github.com/mpiorowski/supabase-svelte-ssr

supabase svelte sveltekit typescript

Last synced: 4 days ago
JSON representation

Supabase authentication with SvelteKit SSR

Awesome Lists containing this project

README

        

# Supabase authentication with SvelteKit SSR

## Demo
https://supabase-svelte-ssr.vercel.app

## Description

This template was build using [Supabase Guide](https://supabase.com/docs/guides/getting-started/tutorials/with-sveltekit) with some minor tweaks:

- Full page protection inside `hooks.server.ts`, which means EVERY request is checked.
- Moved image logic into server side.
- Cleared all strict typescript warnings.

## Missing environment variables

For local development You can create an .env file in root folder.

```
PUBLIC_SUPABASE_URL='supabase url'
PUBLIC_SUPABASE_ANON_KEY='supabase anon key'
```