mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
* Add Supabase adapter * Add Supabase adapter * Add schema setup to docs * supabase config changes * chore: update to supabase-js v2. * chore: migrate to next_auth schema. * feat: add supabase examples. * chore: update docs. * chore: add telemetry. * fix: resolve issues after merge. * chore: extend session type. * typo * chore: remove unnecessary grants. * fix: schema constraints. Co-authored-by: thorwebdev <thor@supabase.io> Co-authored-by: Thor 雷神 Schaeff <5748289+thorwebdev@users.noreply.github.com> Co-authored-by: Thang Vu <hi@thvu.dev>
20 lines
571 B
Bash
Executable File
20 lines
571 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# install Supabase CLI when run on CI
|
|
if [ "$CI" = true ]; then
|
|
wget -O supabase.deb https://github.com/supabase/cli/releases/download/v0.29.0/supabase_0.29.0_linux_amd64.deb
|
|
sudo dpkg -i supabase.deb
|
|
fi
|
|
|
|
# Start Supabase, grep key and set it as SUPABASE_SERVICE_ROLE_KEY environment variable
|
|
line=$(supabase start | grep 'service_role key')
|
|
IFS=':'; arr=($line); unset IFS;
|
|
export SUPABASE_SERVICE_ROLE_KEY=${arr[1]}
|
|
|
|
# Always stop Supabase, but exit with 1 when tests are failing
|
|
if npx jest; then
|
|
supabase stop
|
|
else
|
|
supabase stop && exit 1
|
|
fi
|