Skip to content

Commit

Permalink
Added Companion OAuth Key type (#4668)
Browse files Browse the repository at this point in the history
Added the type for Companion OAuth keys in response to #4664 (comment)
  • Loading branch information
prattcmp authored Sep 29, 2023
1 parent 4b1bc4b commit 3d67fe3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/@uppy/companion-client/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@ export interface TokenStorage {

type CompanionHeaders = Record<string, string>

type CompanionKeys = {
key: string,
credentialsName: string,
}

export interface RequestClientOptions {
companionUrl: string
companionHeaders?: CompanionHeaders
companionCookiesRule?: RequestCredentials
companionKeysParams?: CompanionKeys
}

type RequestOptions = {
Expand Down

0 comments on commit 3d67fe3

Please sign in to comment.