(value: unknown)
| 10 | } |
| 11 | |
| 12 | const isSsoProvider = (value: unknown): value is SsoProvider => |
| 13 | typeof value === "object" && |
| 14 | value !== null && |
| 15 | typeof (value as { id?: unknown }).id === "string" && |
| 16 | typeof (value as { name?: unknown }).name === "string"; |
| 17 | |
| 18 | export const fetchSsoProviders = async (): Promise<readonly SsoProvider[]> => { |
| 19 | const response = await fetch("/api/auth-config", { credentials: "same-origin" }).then( |
nothing calls this directly
no outgoing calls
no test coverage detected