supabase-community / auth-ui

Pre-built Auth UI for React
https://supabase.com/docs/guides/auth/auth-helpers/auth-ui
MIT License
488 stars 121 forks source link

A glitch when used on SvelteKit #240

Closed vigneshksaithal closed 10 months ago

vigneshksaithal commented 10 months ago

Bug report

Describe the bug

A glitch appears when page using auth-ui is refreshed (see below video) in SvelteKit (SSR + PreRender mode). For reference you can visit https://riju.ai/signin and refresh the page to see in action.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Create a SvelteKit app and install supabase auth-ui.
  2. Add auth-ui and set prerender to true.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

https://github.com/supabase/auth-ui/assets/60360863/3e4c9e52-935d-4a5e-a7f8-f59f5d1cd04f

System information

vigneshksaithal commented 10 months ago

Duplicate of #230