Hi team, getting auth errors using supabase auth after upgrading to RW 8. Have reproduced in a repo below.
Project on Netlify: https://gleeful-crostata-12f61b.netlify.app/
Repo: GitHub - hamishirving/rw-8-supabase-auth
Steps to reproduce locally:
- Create clean project
yarn create redwood-app
- Setup supabase auth
yarn rw setup auth supabase
- Follow steps in supabase auth how to guide Supabase Auth | RedwoodJS Docs
- Sign up a user
- Login with your credentials
- See error
Unsupported authentication method
and message in the console
"message": "Exception in getAuthenticationContext: No Supabase session found",
"stack": "Error: Exception in getAuthenticationContext: No Supabase session found\n at onContextBuilding...
System info
System:
OS: macOS 15.1.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.18.1 - /private/var/folders/wx/14qkqkgs6lx4fpxzqbl6k_3h0000gn/T/xfs-1d3e9167/node
Yarn: 4.4.0 - /private/var/folders/wx/14qkqkgs6lx4fpxzqbl6k_3h0000gn/T/xfs-1d3e9167/yarn
Databases:
SQLite: 3.43.2 - /usr/bin/sqlite3
Browsers:
Chrome: 131.0.6778.109
Safari: 18.1.1
npmPackages:
@redwoodjs/auth-supabase-setup: 8.4.1 => 8.4.1
@redwoodjs/core: 8.4.1 => 8.4.1
@redwoodjs/project-config: 8.4.1 => 8.4.1
redwood.toml:
[web]
title = "Redwood App"
port = 8910
apiUrl = "/.netlify/functions"
includeEnvironmentVariables = [
# Add any ENV vars that should be available to the web side to this array
# See https://redwoodjs.com/docs/environment-variables#web
"SUPABASE_URL",
"SUPABASE_KEY",
]
[api]
port = 8911
[browser]
open = true
[notifications]
versionUpdates = ["latest"]