-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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): refractor passwordless auth interface #12718
feat(auth): refractor passwordless auth interface #12718
Conversation
4c49d2a
to
b646849
Compare
b646849
to
9a31e50
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start! Mostly left feedback/questions on the interfaces
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Some nits, and I agree with some feedback from the other reviewers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @AllanZhengYP for putting this together. If the outputs are going to be discriminated unions, wondering if it make sense to explicitly define the type values for isSignUpComplete
and isSignedIn
?
I also noticed that this PR is not changing the confirmSignIn
API correct ?
…sswordless without breaking users
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
) { | ||
const { options, passwordless } = input; | ||
if (passwordless) { | ||
// Iterate through signUpPasswordless calls to make TypeScript happy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whats the issue without iterating?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some feedback/thoughts on alignment of interface naming conventions and replacing the usage of existing input/output interfaces (SignInInput
, SignInOutput
, etc). Also would like to see the extraneous optional never
keys removed 😅
5412477
into
aws-amplify:feat/passwordless-auth
Description of changes
Set up passwordless APIs to reflect approved API designs
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.