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

auth via supabse #208

Merged
merged 4 commits into from
Mar 29, 2023
Merged

auth via supabse #208

merged 4 commits into from
Mar 29, 2023

Conversation

ff6347
Copy link
Collaborator

@ff6347 ff6347 commented Mar 24, 2023

This PR adds some more additions to the new supabase setup.

  • docs(v3): Update docs to reflect v3 315d87e
  • feat(profiles): Add constraint to profile.username acbf24f

Makes usernames unique
Makes usernames min 3 and max 50 (in the frontend we use only 20)
Add trigger function on insert and update to add short uuid
to username if we add an already existing name.
This is needed so we can use the first part of the email on signup.

The other functions are here because migra kept adding them.
Maybe it will finally shut up about them when I add them now

@ff6347 ff6347 temporarily deployed to ci_test March 24, 2023 07:27 — with GitHub Actions Inactive
@vercel
Copy link

vercel bot commented Mar 24, 2023

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

Name Status Preview Comments Updated
giessdenkiez-de-postgres-api ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 29, 2023 at 7:05PM (UTC)

Copy link

@JensWinter JensWinter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

@ff6347
Copy link
Collaborator Author

ff6347 commented Mar 24, 2023

@JensWinter The frontend is also on its way. I guess next week we will be ready with the refactor so we can remove Auth0. I already tested the import of users from Auth0. Works also fine. technologiestiftung/giessdenkiez-de#555

Make unique
Make min 3 and max 50 (in the frontend we use only 20)
Add trigger function on insert and update to add short uuid
to username if we add an already existing name.
This is needed so we can use the first part of the email on signup.

The other functions are here because migra kept adding them.
Maybe it will finally shut up about them when I add them now
…ng/giessdenkiez-de-postgres-api into feat/auth-via-supabase
@ff6347 ff6347 temporarily deployed to ci_test March 29, 2023 19:04 — with GitHub Actions Inactive
@ff6347 ff6347 changed the title docs(v3): Update docs to reflect v3 auth via supabse Mar 29, 2023
@ff6347 ff6347 merged commit dbffdf6 into staging Mar 29, 2023
@ff6347 ff6347 deleted the feat/auth-via-supabase branch March 29, 2023 19:22
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.

2 participants