Skip to content

Inconsistency with transports property type #27

@aaroned

Description

@aaroned

I noticed the transports property types differ between the Authenticator and WebAuthnAuthenticator interfaces. One is string and the other a string[].

This leads to inconsistency in the way the strategy is configured (getUserAuthenticators vs getAuthenticatorById). Could both be string[]?

interface WebAuthnAuthenticator {
    id: string;
    transports: string[];
}
export interface Authenticator {
    id: string;
    userId: string;
    publicKey: string;
    counter: number;
    credentialDeviceType: string;
    credentialBackedUp: boolean;
    transports: string;
    aaguid: string;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions