Skip to content

createOrgSwitchSession

CreateOrgSwitchSessionV2 creates a new auth token for a user switching between orgs. V2 version that consolidates resolver/DAL logic into the RPC handler.

Arguments

Argument Type Description
input (required) CreateOrgSwitchSessionInput! Input for creating an org switch session.

Returns

CreateOrgSwitchSessionReply!

Sample

mutation CreateOrgSwitchSession($input: CreateOrgSwitchSessionInput!) {
  createOrgSwitchSession(input: $input) {
    accessToken
  }
}
{
  "input": {
    "orgId": "example-string"
  }
}
{
  "data": {
    "createOrgSwitchSession": {
      "accessToken": "example-string"
    }
  }
}