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

Is the transports field missing from the attestation response parsed from the js code? #79

Open
levelupatlas-mat opened this issue Oct 13, 2024 · 1 comment

Comments

@levelupatlas-mat
Copy link

I have been struggling for many hours trying to figure out where to get the transports data that so many guides suggest to store in a DB along with the credential data. After digging for a bit, I'm wondering if I'm doing things wrong or if this package is missing it.

In the dart class for the response, there are only these fields:

final String clientDataJSON;
final String attestationObject;

However, looking at the json type the javascript code uses (PublicKeyCredentialWithAttestationJSON), we can see that the response field should be made of 3 fields:

clientDataJSON: Base64urlString;
attestationObject: Base64urlString;
transports: AuthenticatorTransportJSON[];

Am I correct and it is indeed missing?

@incorbador
Copy link
Contributor

Hey @levelupatlas-mat, thanks for the issue 👍
The transports field is indeed missing that's right. I have added some feedback to the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants