DEV-4 - setup supabase and user authentication#7
Conversation
|
Re: environment variables -> the example env file is good and good catch to consider .devcontainers but it seems like its fine . Next.js is the one reading them in, so as long as people make the file in the repository it should read them in even if its a container. I do have to put these environment variables into Kubernetes, so that might take a second to figure out before I merge this in. |
|
RE: @chenxin-yan Oauth out of organization, looks like you can create a trigger in Supabase to avoid it. Not too sure about how this works but it seems these got it to work: This seems like a pretty common problem, so I think one of these or someone else should have gotten this to work. |
|
@safipatel I will take a look. It seems we can achieve this through a Supabase function and trigger. However, I am wondering if we can pass arguments to the function instead of hardcoding the allowed domains in the Supabase function. |
|
@safipatel I configured supabase function and trigger, it should be working now. I deleted code that handles domain check as it is handled on database side now. I stored allowed domains in database rather than as env variables so database functions can have access to that infromation. |
…EV-4-user-authentication
|
Another FYI: |

Jira issue
📌 What’s Changed
package.json, leading tocannot find moduleerror.--fixflag bylint-staged.huskyandlint-stagedfor adding git pre-commit hooks #2pnpm formatin pre-commit hook #6.env.exampleto showcase expected environmental variables/utils/supabasesignInWithGoolgeandsignOutactions✅ Actions Needed
.env.exampleand they should be set in.env.local. @safipatel you might need to take a look at it.🔗 Links