Skip to content
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

staging to main - migration to supabase #593

Merged
merged 143 commits into from
May 23, 2023
Merged

staging to main - migration to supabase #593

merged 143 commits into from
May 23, 2023

Conversation

ff6347
Copy link
Collaborator

@ff6347 ff6347 commented May 23, 2023

This PR will remove Auth0.com as authentication provider and move all auth related logic to Supabase.com

Great thanks go to auth0.com for providing us with a free account for this project. Since we created giessdenkiez.de a lot of things have changed. Our skill-set and team grew a lot, we learned to use several other stacks. We moved away from AWS as provider for our prototypes (only S3 is still in use). We moved our tree database to Supabase. We moved to Next.js with the site and now we are leaving auth0.com in favor of supabase.com

This will make the stack we use way smaller and hopefully increase adoption.

WARNING: This is a BREAKING CHANGE and might introduce new bugs that we did not anticipate during development.

With: signup, login, password reset, change password, change email, change username
Use supabase in all hooks
Somehow the trigger function only works on sql console
The update of the username happens within the DB using triggers
on the profile table. It did not work because the RLS did not allow the
user to make changes to the trees_watered table on update
Move into smaller ones and add some styling
Remove all traces of auth0
ff6347 and others added 21 commits May 10, 2023 17:02
Signed-off-by: Raphael Arce <raphael.arce@ts.berlin>
Also remove unused function and tests
…ng/giessdenkiez-de into feat/auth-via-supabase
According to git history this was added for auth0
It also broke all tests locally
Signed-off-by: Raphael Arce <raphael.arce@ts.berlin>
Signed-off-by: Raphael Arce <raphael.arce@ts.berlin>
Signed-off-by: Raphael Arce <raphael.arce@ts.berlin>
…lity with current jest setup

Signed-off-by: Raphael Arce <raphael.arce@ts.berlin>
Signed-off-by: Raphael Arce <raphael.arce@ts.berlin>
@vercel
Copy link

vercel bot commented May 23, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
giessdenkiez-de ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2023 11:05am

@socket-security
Copy link

New dependency changes detected. Learn more about Socket for GitHub ↗︎


🚨 Potential security issues found in this pull request. To accept the risk, merge this PR and you will not be notified again.

Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@* or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore es5-ext@0.10.62
  • @SocketSecurity ignore bufferutil@4.0.7
  • @SocketSecurity ignore utf-8-validate@5.0.10
📜 Install scripts

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Package Script field Source
es5-ext@0.10.62 (added) postinstall package-lock.json via @supabase/auth-helpers-nextjs@0.6.0, @supabase/auth-helpers-react@0.3.1, @supabase/auth-ui-react@0.4.2
🫣 Native code

Contains native code which could be a vector to obscure malicious code, and generally decrease the likelihood of reproducible or reliable installs.

Ensure that native code bindings are expected. Consumers may consider pure JS and functionally similar alternatives to avoid the challenges and risks associated with native code bindings.

Package Location Source
bufferutil@4.0.7 (added) binding.gyp package-lock.json via @inpyjamas/scripts@0.1.6-alpha, @storybook/react@6.5.13, @supabase/auth-helpers-nextjs@0.6.0, @supabase/auth-helpers-react@0.3.1, @supabase/auth-ui-react@0.4.2, jest-environment-jsdom@29.3.0
utf-8-validate@5.0.10 (added) binding.gyp package-lock.json via @inpyjamas/scripts@0.1.6-alpha, @storybook/react@6.5.13, @supabase/auth-helpers-nextjs@0.6.0, @supabase/auth-helpers-react@0.3.1, @supabase/auth-ui-react@0.4.2, jest-environment-jsdom@29.3.0
🧌 Protestware/Troll package

This package is a joke, parody, or includes undocumented or hidden behavior unrelated to its primary function.

Package Note Source
es5-ext@0.10.62 (added) This package prints a protestware console message on install regarding Ukraine for users with Russian language locale package-lock.json via @supabase/auth-helpers-nextjs@0.6.0, @supabase/auth-helpers-react@0.3.1, @supabase/auth-ui-react@0.4.2
Pull request alert summary
Issue Status
Install scripts ⚠️ 1 issue
Native code ⚠️ 2 issues
Bin script shell injection ✅ 0 issues
Unresolved require ✅ 0 issues
Invalid package.json ✅ 0 issues
HTTP dependency ✅ 0 issues
Git dependency ✅ 0 issues
Potential typo squat ✅ 0 issues
Known Malware ✅ 0 issues
Telemetry ✅ 0 issues
Protestware/Troll package ⚠️ 1 issue

📊 Modified Dependency Overview:

➕ Added Package Capability Access +/- Transitive Count Publisher
@supabase/auth-ui-react@0.4.2 eval, shell +27 kiwicopple
@supabase/auth-helpers-nextjs@0.6.0 eval, shell, environment +24 phamhieu1998
@supabase/auth-helpers-react@0.3.1 eval, shell +22 phamhieu1998

🚮 Removed packages: @auth0/auth0-react@1.9.0, @trust/webcrypto@0.9.2, @types/auth0@2.33.1, deno_ls_plugin@0.1.0, typescript@4.6.3

@ff6347 ff6347 requested a review from raphael-arce May 23, 2023 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants