import { AUTH_SERVICE } from '../config/routes'
import { client } from '../config/clients'
import { callApi } from '../helpers'

export const getTokenVirtualUser = async () => {
  const url = `${AUTH_SERVICE}/v1/user/create?client_id=${client.auth.clientId}`

  const config = {
    method: 'POST',
  }

  return callApi({ config, url })
}
