How to silently refresh session (triggering the session.before.create hooks)
When a user logs in, I check if they belong to any orgs, and set the
But when they change active org, the hook doesn't seem to rerun. The
Can I manually create and set a new session silently, given that the user is already authenticated
activeOrganizationId in session.before.create, if they do. I also add member_id and member_role to the session, for quick access.But when they change active org, the hook doesn't seem to rerun. The
activeorganizationId changes, but the other fields I've added don't.Can I manually create and set a new session silently, given that the user is already authenticated