mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-23 08:14:06 +00:00
[API Node] Allow authentification via Comfy API key (#3815)
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
9
src/types/authTypes.ts
Normal file
9
src/types/authTypes.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
type LoggedInAuthHeader = {
|
||||
Authorization: `Bearer ${string}`
|
||||
}
|
||||
|
||||
export type ApiKeyAuthHeader = {
|
||||
'X-API-KEY': string
|
||||
}
|
||||
|
||||
export type AuthHeader = LoggedInAuthHeader | ApiKeyAuthHeader
|
||||
Reference in New Issue
Block a user