feat: remove authName from HoppRESTAuth type definitions
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user