(auth: V1SourceAuth | undefined)
| 660 | export type V2SourceAuth = { readonly kind: "none" } | { readonly kind: "oauth2" }; |
| 661 | |
| 662 | export const migrateSourceAuth = (auth: V1SourceAuth | undefined): V2SourceAuth => |
| 663 | auth?.kind === "oauth2" ? { kind: "oauth2" } : { kind: "none" }; |
| 664 | |
| 665 | // --------------------------------------------------------------------------- |
| 666 | // Secret-role classification. |
no outgoing calls
no test coverage detected