Skip to content

Account verificationStatus typing is inconsistent between android and ios  #234

@michberr

Description

@michberr

The problem

I'm using react-native-plaid-link-sdk v8.0.0. The verificationStatus field on the LinkAccount interface is typed like so:

export interface LinkAccount {
    id: string;
    name?: string;
    mask?: string;
    type: LinkAccountType;
    subtype: LinkAccountSubtype;
    verificationStatus?: LinkAccountVerificationStatus;
}

However, on android this field is being returned as verification_status.

Environment

N/A

Steps to Reproduce

Examine the result of a LinkAccount

Expected Result

The verificationStatus field should be consistent on both android and ios and match the types defined in the sdk.

Code To Reproduce Issue

  const onSuccess = (linkSuccess: LinkSuccess) => {
    const { publicToken, metadata } = linkSuccess;
   console.log(metadata.accounts);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions