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

Adds signup() to Auth to default UI to a signup tab/form when available #1057

Merged
merged 16 commits into from Sep 7, 2020

Conversation

dthyresson
Copy link
Contributor

@dthyresson dthyresson commented Sep 2, 2020

Addresses issue: #963

Adds:

  • signup() to AuthProvider
  • Implements for Netlify and Auth0 dedicated signup flow
  • For Firebase, the only provider supported is GoogleAuth and the signup and login are the same
  • For Magic.link, login and signup are the same since it emails you a link to authenticate
  • GoTrue uses signup API

Note: Firebase will eventually need to support specifying he provider (Twitter, Apple, Facebook, Firebase, etc). But then the login and signup will also have to handle different cases and even scopes.

Also, for Auth0, if you want to use the useAuth hook Sign Up to default the UI to the sign up "tab", you need to be using the "New Universal Login Experience". The "Classic Universal Experience" does not support the screen_hint to set the tab.

Auth Playground PR exists to test once PR is available in a canary release.

@dthyresson dthyresson marked this pull request as draft September 2, 2020 15:19
@dthyresson dthyresson force-pushed the dt-auth-provider-signup-963 branch 2 times, most recently from cb7417c to b076525 Compare September 3, 2020 13:12
@dthyresson dthyresson marked this pull request as ready for review September 3, 2020 14:01
@peterp
Copy link
Contributor

peterp commented Sep 7, 2020

Hmmmm... I wonder what happened with the commits here.

Copy link
Contributor

@peterp peterp left a comment

Choose a reason for hiding this comment

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

LGTM

@peterp peterp added this to the Next Release milestone Sep 7, 2020
dthyresson and others added 3 commits September 7, 2020 09:35
The any case covers void as well in signup method

Co-authored-by: Peter Pistorius <peter.pistorius@gmail.com>
@peterp peterp merged commit b83ad8d into redwoodjs:main Sep 7, 2020
@peterp
Copy link
Contributor

peterp commented Sep 7, 2020

Whoop whoop thanks @dthyresson !

@dthyresson dthyresson deleted the dt-auth-provider-signup-963 branch December 23, 2021 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants