Skip to content

[Bug]: Switch organization does not work with widget #81

@Dhruv-Mehndhiratta-Centml

Description

  • I have been trying to use switchToOrganization in OrganizationSwitcher widget, it seems like if i use react authkit it works perfectly fine, like it make the authenticate call and update the selected organization(because it fetches organization list after that), but in case of Js library I am not able to see the organizations get api call if I use js instance functions with the OrganizationSwitcher widget, which is making my dropdown to not get update with the latest organization which i picked.

  • Initially i was getting the can not read private member error which i fixed using the bind approach and now i am trying to pass the same instance functions i.e getAccessToken and switchToOrganization from the same client instance to the widget component.

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