Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/magnuswahlstrand/astro-supabase-vercel
https://github.com/magnuswahlstrand/astro-supabase-vercel
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/magnuswahlstrand/astro-supabase-vercel
- Owner: magnuswahlstrand
- Created: 2022-08-20T11:30:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-03T08:18:32.000Z (over 1 year ago)
- Last Synced: 2024-08-02T15:03:55.447Z (4 months ago)
- Language: Astro
- Homepage: astro-supabase-vercel.vercel.app
- Size: 656 KB
- Stars: 85
- Watchers: 4
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-astro - Astro + Supabase + Vercel
README
# Astro-Supabase-Vercel
This repo contains an example app showcasing how to use [**Supabase**](https://supabase.com/) authentication with
[**Astro**](https://astro.build). We use **Supabase** is used for user sign-up and authentication, and Astro for
a mix of static site generation **(SSG)**, and server side rendering **(SSR)**. The app is deployed to
[**Vercel**](https://vercel.com).### Demo
Check out the demo
at: [astro-supabase-vercel.vercel.app](https://astro-supabase-vercel.vercel.app/)
.### Limitations
* To improve security, the cookies for this app should be **Secure** and **HttpOnly** cookies.
* We don't handle automatic renewal of JWTs.
* Error handling is minimal# Development log
### Todo
* [ ] Fix [issue #4](/../../issues/4)
* [ ] Proper error handling for expired JWTs
* [ ] Fix Secure and HttpOnly cookies#### Done
* [x] Add social media preview
* [x] Add tailwind
* [x] Build login screen
* [x] Build register screen
* [x] Add spinner for link
* [x] Remove Supabase key from code
* [x] Fix redirects after logout
* [x] Add outline to README
* [x] Common auth part for all sub pages
* [x] Remove console.log()
* [x] Clean up code
* [x] Redirect after sign in
* [x] Add 2 paragraphs of text per about page
* [x] **Minor**
* [x] Fix margin bottom
* [x] Remove content on 2nd paragraph
* [x] Fix page titles### Notes and questions
* Can we set server side cookie AND redirect? - Yes
* https://docs.astro.build/en/guides/server-side-rendering/#astrorequestheaders
* ```npm install @astrojs/vercel```
* **Problems**
*``