Source

services/AuthService.class.js

import ScenidCloudService from './ScenidCloudService.class.js'

/**
 * Admin-level client for the Scenid Auth Service.
 *
 * Obtained via `sdk.asAdmin().Auth()`. Runs requests with a machine-to-machine
 * service token, so it is suited for administrative operations against the auth
 * service that do not require a user context.
 *
 * @extends ScenidCloudService
 *
 * @example
 * const auth = sdk.asAdmin().Auth()
 */
class AuthService extends ScenidCloudService {
  /**
   * @param {string|function(): Promise.<string>} tokenSource
   * @param {string} serviceUrl
   */
  constructor (tokenSource, serviceUrl) {
    super(tokenSource, serviceUrl)
  }
}

export default AuthService