Skip to content

Reproduction of issue loading users via seed data across supabase cli versions.

Notifications You must be signed in to change notification settings

wwall3r/supabase-seed-users-reproduction

Repository files navigation

This repo reproduces an issue with seed data containing users in supabase.

Steps to reproduce:

  1. Install supabase 0.17.0 from https://github.com/supabase/cli/releases
  2. cd to this repo
  3. git checkout 31b53b25dd (for the version compatible with that supabase cli version)
  4. supabase start
  5. Note that seed.sql was created with ./create_user.js and ./dump_seed_data.sh, but you do not need to recreate that here
  6. ./load_seed_data.sh
  7. ./login.js should succeed and show the session
  8. supabase stop
  9. Install supabase 1.8.4 from https://github.com/supabase/cli/releases
  10. git checkout main in this repo
  11. supabase start
  12. ./load_seed_data.sh
  13. ./login.js fails with "invalid login credentials"

Note that at this point, changing creds.js to have a new email and running ./create_user.js and ./login.js will succeed. What I expect is happening is that the auth schema has database migrations, but those migrations are not run with data in the tables.

About

Reproduction of issue loading users via seed data across supabase cli versions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published