-
Notifications
You must be signed in to change notification settings - Fork 31
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
Update register response with transports field #80
base: main
Are you sure you want to change the base?
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,12 @@ class RegisterResponseType { | |
required this.rawId, | ||
required this.clientDataJSON, | ||
required this.attestationObject, | ||
required this.transports, | ||
}); | ||
|
||
final String id; | ||
final String rawId; | ||
final String clientDataJSON; | ||
final String attestationObject; | ||
final List<String> transports; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar as with passkeys_android we have to use List<String?> here => you also have to set this new transport field in RegisterController.swift then. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done, although please check the Swift code if possible. |
||
} |
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.
For pigeon (the library we use to generate the glue code between Flutter and native code) every generic type has to be nullable => we have to use
final List<String?> transports
here and update line 90 in passkeys_android.dart like thisr.transports.whereType<String>().toList()
.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.
Done!