-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The schema must be one of the following: public, storage, graphql_public #5884
Comments
For future reference, restarting Supabase locally with ✍🏼 More details This happened by following the instructions properly for the Supabase adapter, leading to this error in the terminal :
💡 PGRST106 : The schema specified when switching schemas is not present in the db-schemas configuration variable. I can make a PR explaining this for the supabase adapter docs if you feel this is useful @balazsorban44 ? |
Yeah, clarifying the docs is welcome. |
Hi, for me restarting Supabase does not solve the issue! I'm having Supabase self-hosted - is this a limitation? |
@rbrueckner so go to your project settings>API> add next_auth schema u created from the docs here |
Where do I find "project settings" in a self-hosted Studio? |
@rbrueckner aah that's something I don't know, maybe in the project section ? can you send a screenshot of the ui? |
@rbrueckner you can use your local |
This works. Thanks. |
@farid98 There is no settings option in self-hosted projects |
@SrDouglax Have you found a way to expose the schema in a self-hosted project? |
normally you have a
|
For those who might not be familiar with local development with docker, the following might be helpful: once you pull your public schemas, supabase cli recommends another command like:
try to add "next_auth" to this command: once the new migration files are generated, you can push them to your local by running: otherwise, next_auth schema won't show up in your local studio. additionally, you can generate types by running: |
This comment has been minimized.
This comment has been minimized.
@nietsmmar thanks a lot |
Environment
npx envinfo --system --binaries --browsers --npmPackages "next,react,next-auth"
System:
OS: Windows 10 10.0.19044
CPU: (12) x64 AMD Ryzen 5 3600 6-Core Processor
Memory: 7.41 GB / 15.93 GB
Binaries:
Node: 16.15.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.18 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.5.3 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.19041.1266.0), Chromium (107.0.1418.56)
Internet Explorer: 11.0.19041.1566
npmPackages:
next: 13.0.5 => 13.0.5
next-auth: ^4.17.0 => 4.17.0
react: 18.2.0 => 18.2.0
Reproduction URL
na
Describe the issue
getting the above mentioned issue when using supabase adapter.
How to reproduce
Add supabase adapter and try to sign in
Expected behavior
User account creation.
The text was updated successfully, but these errors were encountered: