session_id.rb 288 B

123456789101112131415
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. module Gql::Queries
  3. class SessionId < BaseQuery
  4. description 'The sessionId of the currently authenticated user.'
  5. type String, null: false
  6. def resolve(...)
  7. context[:sid]
  8. end
  9. end
  10. end