mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-21 10:11:33 +00:00
16 lines
425 B
TypeScript
16 lines
425 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: `/management/v1/`,
|
||
|
}
|
||
|
})
|
||
|
}
|