import { login, User } from 'support/login/users'; export interface apiCallProperties { authHeader: string; mgntBaseURL: string; } export function apiAuth(): Cypress.Chainable { return login(User.IAMAdminUser, 'Password1!', false, true).then((token) => { return { authHeader: `Bearer ${token}`, mgntBaseURL: `${Cypress.env('BACKEND_URL')}/management/v1/`, }; }); }