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

feat/auth via supabase #555

Merged
merged 141 commits into from
May 23, 2023
Merged

feat/auth via supabase #555

merged 141 commits into from
May 23, 2023

Commits on Mar 20, 2023

  1. feat(auth): Working auth using supabase

    With: signup, login, password reset, change password, change email, change username
    ff6347 committed Mar 20, 2023
    Configuration menu
    Copy the full SHA
    982791e View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2023

  1. Configuration menu
    Copy the full SHA
    2e4261b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2d7b9c4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    65a0da2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5ddf090 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    145b8a2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c486379 View commit details
    Browse the repository at this point in the history
  7. feat(hooks): Add supabase hooks

    Use supabase in all hooks
    ff6347 committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    a10479e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d68c0f0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fb15959 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    a1e6eb8 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    4ff63ee View commit details
    Browse the repository at this point in the history
  12. fix: Error paste sql function

    ff6347 committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    1f6c722 View commit details
    Browse the repository at this point in the history
  13. feat: Update username on trees_watered

    Somehow the trigger function only works on sql console
    ff6347 committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    8124ca0 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2023

  1. chore: Remove unneccesary code

    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
    ff6347 committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    76230ee View commit details
    Browse the repository at this point in the history
  2. refactor(auth): Split large component

    Move into smaller ones and add some styling
    ff6347 committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    57dd738 View commit details
    Browse the repository at this point in the history
  3. refactor: Housekeeping

    ff6347 committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    be534c2 View commit details
    Browse the repository at this point in the history
  4. refactor: Remove auth0 context

    ff6347 committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    9729987 View commit details
    Browse the repository at this point in the history
  5. fix: Small error. Import React

    ff6347 committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    27d3aa9 View commit details
    Browse the repository at this point in the history
  6. refactor: Remove auth0 context

    ff6347 committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    901e215 View commit details
    Browse the repository at this point in the history
  7. feat: Add link to auth section

    ff6347 committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    1b57979 View commit details
    Browse the repository at this point in the history
  8. refactor: Remove loading state.

    Was bound to auth0
    ff6347 committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    066de9d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e3a9fcc View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2023

  1. fix(SidebarProfile): Loading state

    @vogelino was right. I was wrong.
    ff6347 committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    b30c915 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8cb9190 View commit details
    Browse the repository at this point in the history
  3. chore: Housekeeping

    ff6347 committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    1dc21f3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    aceff6e View commit details
    Browse the repository at this point in the history
  5. chore: Housekeeping

    Remove all traces of auth0
    ff6347 committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    233913f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    dee4f44 View commit details
    Browse the repository at this point in the history
  7. feat: Add expandable panels

    ff6347 committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    e6e5fb8 View commit details
    Browse the repository at this point in the history
  8. style: Some small paragraphs

    ff6347 committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    be8e44c View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2023

  1. Configuration menu
    Copy the full SHA
    a328ddd View commit details
    Browse the repository at this point in the history
  2. Merge branch 'staging' into feat/auth-via-supabase

    Conflicts:
    src/utils/requests/getWateredTrees.ts
    ff6347 committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    a789dbe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fcfa790 View commit details
    Browse the repository at this point in the history
  4. feat(PW Reset): Force user to provide old PW

    also do PW validation
    ff6347 committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    ce3012f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    758388a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    868806d View commit details
    Browse the repository at this point in the history
  7. fix: Label ref and add tests

    ff6347 committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    827e5b3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2969dad View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2023

  1. Configuration menu
    Copy the full SHA
    c364846 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a36e850 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    45a312e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d2e53fb View commit details
    Browse the repository at this point in the history
  5. chore: REmove unused hook

    ff6347 committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    8247caf View commit details
    Browse the repository at this point in the history
  6. chore: Remove logging

    ff6347 committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    59bf922 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d573200 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    aa1d5bd View commit details
    Browse the repository at this point in the history
  9. feat: Edit account in modal

    ff6347 committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    9a7a3bc View commit details
    Browse the repository at this point in the history
  10. chore: Remove logging

    ff6347 committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    7322445 View commit details
    Browse the repository at this point in the history
  11. fix(Submit button): Did not show on mobile

    due to missing colorType variable
    ff6347 committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    5f9ad80 View commit details
    Browse the repository at this point in the history
  12. fix(profile): Not finished loading when logged out

    Due to profile not present when there is no id
    ff6347 committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    5112ef6 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    f403b0f View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2023

  1. Configuration menu
    Copy the full SHA
    476a1ce View commit details
    Browse the repository at this point in the history
  2. refactor: Move interfaces

    ff6347 committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    4714b28 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    de59071 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1781eb0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b1d78ef View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    57d32ed View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    92b7e99 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f1e8f7a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e59d175 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6326213 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    a1c1445 View commit details
    Browse the repository at this point in the history
  12. refactor: Elevate state to HOC

    ff6347 committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    dbdf51a View commit details
    Browse the repository at this point in the history
  13. chore: Typo in function name

    ff6347 committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    56bdd24 View commit details
    Browse the repository at this point in the history
  14. feat: Notify users of errors

    Password edit still has errors
    ff6347 committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    485aa27 View commit details
    Browse the repository at this point in the history
  15. refactor: Elevate state to HOC

    ff6347 committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    a4af19d View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2023

  1. chore: Remove dead code

    ff6347 committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    a9aed50 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3f5500c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fb38631 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2023

  1. fix: check password equality first

    Note that this may fix the issue of the error notification not appearing. It is still to be investigated why this is. It seems that after calling `signInWithPassword` the session changes, which might have something to do with that.
    dnsos committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    f13daa0 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2023

  1. docs: demonstrate that new session unmounts PasswordEditForm

    When `signInWithPassword` is successful, a new session is created via the `SessionContextProvider`. This causes the `PasswordEditForm` component to unmount, resulting in the `setNotification` to not have an effect anymore: after all the component including the notification UI is unmounted. Note that we still see the console logs because the `updatePassword` function actually finishes inside the `formData.password !== formData.repeatPassword` condition, so we've got our logs with a null notification.
    dnsos committed Apr 13, 2023
    Configuration menu
    Copy the full SHA
    b6c00c9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    40afe69 View commit details
    Browse the repository at this point in the history
  3. fix: validate password without persisting new session (if validation …

    …successful)
    
    This properly fixes the unmounted form component. That's why the password equality check is moved back to its original position. The order of checks doesn't matter anymore.
    dnsos committed Apr 13, 2023
    Configuration menu
    Copy the full SHA
    75f3eca View commit details
    Browse the repository at this point in the history
  4. fix: remove loading text in submit button after password change attempt

    Without `setIsBeeingSaved(false)` the button text was stuck with "Wird eingetragen ..."
    dnsos committed Apr 13, 2023
    Configuration menu
    Copy the full SHA
    7a1e6cf View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2023

  1. Configuration menu
    Copy the full SHA
    cb5ed29 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fe00655 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5a59c28 View commit details
    Browse the repository at this point in the history
  4. feat: create modal with success view

    After successful form submit, a new view informs the user about the successful action. This success message was missing previously.
    dnsos committed Apr 14, 2023
    Configuration menu
    Copy the full SHA
    c11078a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e4e77b6 View commit details
    Browse the repository at this point in the history
  6. chore: housekeeping

    dnsos committed Apr 14, 2023
    Configuration menu
    Copy the full SHA
    59bf110 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4f3b947 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    84ab4ca View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2023

  1. Configuration menu
    Copy the full SHA
    2a1d2f0 View commit details
    Browse the repository at this point in the history
  2. feat: wrap account updates in wrapper

    This wrapper will be what the accound edit form uses. We need this wrapper because the account edit actually consists of different requests: the email update targets the auth schema in the database, the username update the public schema with the profiles table (that is different from the user table in the auth schema)
    dnsos committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    2a7bdb8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4ff3975 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d2ead9b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c49d6b1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6f87fd3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    38fa6ca View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    aa611f1 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2023

  1. chore: provide fallback error message

    In case `!data` is true and no `error` exists we still want to log something.
    dnsos committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    eb551f5 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #569 from technologiestiftung/refactor/edit-account

    refactor: edit account action
    dnsos authored Apr 20, 2023
    Configuration menu
    Copy the full SHA
    5ff0088 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e6456b9 View commit details
    Browse the repository at this point in the history
  4. chore: Fix typo

    ff6347 authored Apr 20, 2023
    Configuration menu
    Copy the full SHA
    99a29df View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    feeb5b3 View commit details
    Browse the repository at this point in the history
  6. fix: prevent signed-in auth view from flashing

    We now immediately redirect from /auth to /profile once there is a session present
    dnsos committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    ae4abdd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0ae4f3d View commit details
    Browse the repository at this point in the history
  8. fix: added missing space

    raphael-arce committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    3b4b063 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2023

  1. Merge pull request #572 from technologiestiftung/fix/signin-loading-s…

    …tate
    
    fix: prevent signed-in auth view from flashing
    dnsos authored Apr 21, 2023
    Configuration menu
    Copy the full SHA
    ed9a520 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bb87be2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    85d401e View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2023

  1. Configuration menu
    Copy the full SHA
    c0be3b1 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2023

  1. Merge pull request #573 from technologiestiftung/feat/add-signup-pass…

    …word-strength
    
    feat: added signup password strength validation
    raphael-arce authored May 5, 2023
    Configuration menu
    Copy the full SHA
    d4f3de0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    da353ed View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0cebb81 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2023

  1. Configuration menu
    Copy the full SHA
    9ababdc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f8caf98 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a4ae9c0 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2023

  1. fix(auth): Add confirm view

    View was missing. User is now presented with a message
    ff6347 committed May 9, 2023
    Configuration menu
    Copy the full SHA
    6a6e169 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    412c230 View commit details
    Browse the repository at this point in the history
  3. fix: Use the right quotes

    ff6347 committed May 9, 2023
    Configuration menu
    Copy the full SHA
    f14d12e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    20aa7fc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c246796 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    35c36d3 View commit details
    Browse the repository at this point in the history
  7. Merge pull request #575 from technologiestiftung/docs/env-vars_recove…

    …ry_auth_redirect_url
    ff6347 authored May 9, 2023
    Configuration menu
    Copy the full SHA
    0d6ab65 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9f77aef View commit details
    Browse the repository at this point in the history

Commits on May 10, 2023

  1. Configuration menu
    Copy the full SHA
    dea9634 View commit details
    Browse the repository at this point in the history
  2. feat: Add user email to default text

    rather then notifiction. Also does some housekeeping
    ff6347 committed May 10, 2023
    Configuration menu
    Copy the full SHA
    61a757b View commit details
    Browse the repository at this point in the history
  3. feat: Add user email to default text

    rather then notifiction. Also does some housekeeping
    ff6347 committed May 10, 2023
    Configuration menu
    Copy the full SHA
    b24b68c View commit details
    Browse the repository at this point in the history
  4. fix: Revert changes to recovery notification

    Wasn't intended
    ff6347 committed May 10, 2023
    Configuration menu
    Copy the full SHA
    dd82aa0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    35f20e0 View commit details
    Browse the repository at this point in the history
  6. feat: removed error notification on email duplicate

    Signed-off-by: Raphael Arce <raphael.arce@ts.berlin>
    raphael-arce committed May 10, 2023
    Configuration menu
    Copy the full SHA
    fb4c070 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2023

  1. Merge pull request #579 from technologiestiftung/feat/remove-error-ms…

    …g-on-email-duplicate
    ff6347 authored May 11, 2023
    Configuration menu
    Copy the full SHA
    4828252 View commit details
    Browse the repository at this point in the history
  2. fix(Quotes): Can't use html entities in string

    Also remove unused function and tests
    ff6347 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    8c7dc03 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7f4a021 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b2a9414 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'feat/auth-via-supabase' of github.com:technologiestiftu…

    …ng/giessdenkiez-de into feat/auth-via-supabase
    ff6347 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    033c3e2 View commit details
    Browse the repository at this point in the history
  6. test: remove webcrypto modul

    According to git history this was added for auth0
    It also broke all tests locally
    ff6347 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    bcf3ec9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    de30fc4 View commit details
    Browse the repository at this point in the history
  8. feat: added idea folder to gitignore

    Signed-off-by: Raphael Arce <raphael.arce@ts.berlin>
    raphael-arce committed May 11, 2023
    Configuration menu
    Copy the full SHA
    a07baa4 View commit details
    Browse the repository at this point in the history
  9. chore: upgraded supabase libs to latest version

    Signed-off-by: Raphael Arce <raphael.arce@ts.berlin>
    raphael-arce committed May 11, 2023
    Configuration menu
    Copy the full SHA
    2dec7aa View commit details
    Browse the repository at this point in the history
  10. fix: moved password recovery to an own page

    Signed-off-by: Raphael Arce <raphael.arce@ts.berlin>
    raphael-arce committed May 11, 2023
    Configuration menu
    Copy the full SHA
    4534f07 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    52efc67 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    fb9ffe8 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2023

  1. Merge pull request #584 from technologiestiftung/chore/update-databas…

    …e-types
    
    chore: Update database types
    raphael-arce authored May 12, 2023
    Configuration menu
    Copy the full SHA
    c9faaaf View commit details
    Browse the repository at this point in the history

Commits on May 15, 2023

  1. chore: downgraded supabase/auth-helpers-nextjs because of incompatibi…

    …lity with current jest setup
    
    Signed-off-by: Raphael Arce <raphael.arce@ts.berlin>
    raphael-arce committed May 15, 2023
    Configuration menu
    Copy the full SHA
    6948cc8 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2023

  1. feat: add notification placeholder to improve visual stability

    Signed-off-by: Raphael Arce <raphael.arce@ts.berlin>
    raphael-arce committed May 16, 2023
    Configuration menu
    Copy the full SHA
    3ca61fc View commit details
    Browse the repository at this point in the history

Commits on May 23, 2023

  1. Configuration menu
    Copy the full SHA
    99cecf3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    04dfc7c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    80f3d44 View commit details
    Browse the repository at this point in the history