-
Notifications
You must be signed in to change notification settings - Fork 249
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): runtime authFlow attribute #1687
feat(auth): runtime authFlow attribute #1687
Conversation
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
65804fd
to
5bea8c5
Compare
@@ -17,10 +17,13 @@ import 'package:amplify_core/amplify_core.dart'; | |||
|
|||
class CognitoSignInOptions extends SignInOptions { | |||
Map<String, String>? clientMetadata; | |||
CognitoSignInOptions({this.clientMetadata}) : super(); | |||
final AuthenticationFlowType? authFlowType; |
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.
How about just authFlow
. The type
suffix originates in the SDK where they add Type
to the end of all types for some reason
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.
The API parameter authFlowType
is what is used by the native libraries, so I decided to stay consistent with them. In terms of the enum AuthenticationFlowType
, I used the existing one we are getting from the config. I realize it's a little odd to have a mismatch between the type name and the API parameter, but I didn't want to deviate from the native APIs or change/duplicate an existing enum.
5bea8c5
to
aad4f4b
Compare
To match aws-amplify#1687. commit-id:883a5e6b
To match #1687. commit-id:883a5e6b
Issue
#334
Description of changes:
Adds runtime authFlow type. Requires bumping amplify-android to 1.34.0 and amplify-ios to 1.25.0.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.