mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
fc4f4096e0
* prettier in e2e * format * typescript as dev dependency * ci all, check linting * resolve liniting issues * fix wait-on * fix package-lock.json Co-authored-by: Elio Bischof <eliobischof@gmail.com>
16 lines
433 B
TypeScript
16 lines
433 B
TypeScript
import { login, User } from 'support/login/users';
|
|
|
|
export interface apiCallProperties {
|
|
authHeader: string;
|
|
mgntBaseURL: string;
|
|
}
|
|
|
|
export function apiAuth(): Cypress.Chainable<apiCallProperties> {
|
|
return login(User.IAMAdminUser, 'Password1!', false, true).then((token) => {
|
|
return <apiCallProperties>{
|
|
authHeader: `Bearer ${token}`,
|
|
mgntBaseURL: `${Cypress.env('BACKEND_URL')}/management/v1/`,
|
|
};
|
|
});
|
|
}
|