How to refresh session after changing org in Nuxt?

Using the following
const { data: session } = await $auth.useSession(useAuthFetch)
$auth.organization.setActive({ organizationId: org })
const { data: session } = await $auth.useSession(useAuthFetch)
$auth.organization.setActive({ organizationId: org })
But once the call has been made, the session variable from useSession is not updated to reflect the new org change.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?