Is there in descope a widget that a user can chang...
# ask-a-descoper
n
Is there in descope a widget that a user can change tenant, without having to logout and relogin? Some kind of a simple drop down that we can have in the page header of the app and allow them to change?
b
There isn't so much of a prebuilt “header dropdown,” per say, but you can let users switch tenants in-session. • Use the client SDK: call
myTenants()
to list a user’s tenants and on select call
selectTenant(tenantId)
. That swaps the session’s
dct
(current tenant) and refreshes the token, no logout/login • If you prefer no code: there’s also a Switch Tenant component you can drop into a Flow and pop as a modal. After switching, just refetch any tenant-scoped data.
m
@Nadav Yeheskel there is a short term roadmap item, to add this widget "out of the box"
Probably next month
n
Cool, thanks for the answers 🙏🏻
hey guys, Do you have time estimation on the widget out of the box?
@Meir Wahnon hey hey, any update on the timelines?
m
not yet , sorry