You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.