Skip to content

Instance ID is required to be a number by types but the docs says it should be string #181

@isoroka-plana

Description

@isoroka-plana

Describe the issue:
When using the getInstance() method in TypeScript and passing a string id as the first parameter, TypeScript complains that string is not assignable to a number because the first parameter of getInstance() is typed to be a number contrary to what the documentation says.

How to reproduce:
Install the lib into a TypeScript project and try calling AsgardeoSPAClient.getInstance('string')

Expected behavior:
There should be no TypeScript error. string is the preferred type for id.

Environment information (Please complete the following information; remove any unnecessary fields) :

  • SDK Version: 3.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions