AlmondTill/G3N API

On this page

logout

mutation · in the family Your own session

What it does

Sign out — end the current session.

Revoke the caller's current session — idempotent; the next call with the token dies.

Who may call it

Capability area: Your own session — What every signed-in person may do for themselves — their session, their profile and their own work.

Returns

Boolean Boolean! — True or false.

Example request

mutation ExampleLogout {
  logout
}

Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.

Example response

{
  "data": {
    "logout": true
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer