Files
hoppscotch/helpers/types/HoppRESTAuth.ts
liyasthomas 971b35a252 refactor: auth
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
2021-08-12 09:56:05 +05:30

22 lines
320 B
TypeScript

export type HoppRESTAuthNone = {
authType: "none"
}
export type HoppRESTAuthBasic = {
authType: "basic"
username: string
password: string
}
export type HoppRESTAuthBearer = {
authType: "bearer"
token: string
}
export type HoppRESTAuth =
| HoppRESTAuthNone
| HoppRESTAuthBasic
| HoppRESTAuthBearer