Skip to content

Is there a way to get the transports in fido server side? #153

Discussion options

You must be logged in to vote

Based on @JamesCullum and ChatGPT answers, I think I've found the problem and a possible documentation enhancement.
On fido2-lib source-code, I've found the AttestationResult interface declaration as:

interface AttestationResult {
  id?: ArrayBuffer;
  rawId?: ArrayBuffer;
  transports?: string[];
  response: { clientDataJSON: string; attestationObject: string };
}

Look that there's a transports variable on it.
If passing it, the transports will be filled on registration result:

But, this variable (transports) is not documented as the other 3 on attestationResult method as a member of res attribute:

Maybe document the transports variable will make it more clear for those who wants to ke…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@ranierimazili
Comment options

@ranierimazili
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by JamesCullum
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants