(value: string)
| 5 | import type { IOAuthCredentials, OAuthProvider } from "./oauth.types"; |
| 6 | |
| 7 | export const isValidOAuthProvider = (value: string): value is OAuthProvider => { |
| 8 | const providerSet: ReadonlySet<string> = new Set(OAUTH_PROVIDERS); |
| 9 | |
| 10 | return providerSet.has(value); |
| 11 | }; |
| 12 | |
| 13 | export type OAuthCredentialSource = Pick< |
| 14 | Env, |
no test coverage detected