feat: remove authName from HoppRESTAuth type definitions

This commit is contained in:
Andrew Bastin
2021-08-22 13:06:19 +05:30
parent 22e73a4d83
commit 1a4fc1f539
5 changed files with 11 additions and 20 deletions

View File

@@ -1,13 +1,9 @@
export type HoppRESTAuthNone = {
authType: "none"
authName: "None"
authActive: true
}
export type HoppRESTAuthBasic = {
authType: "basic"
authName: "Basic Auth"
authActive: true
username: string
password: string
@@ -15,13 +11,13 @@ export type HoppRESTAuthBasic = {
export type HoppRESTAuthBearer = {
authType: "bearer"
authName: "Bearer Token"
authActive: true
token: string
}
export type HoppRESTAuth =
{ authActive: boolean } & (
| HoppRESTAuthNone
| HoppRESTAuthBasic
| HoppRESTAuthBearer
)