peertube-plugin-livechat/server/lib/diagnostic/utils.ts
John Livingston 024186ba2c
Adding some standard OpenID Connect providers (Google, Facebook) (WIP):
* refactoring, to allow several OIDC singletons
* settings for google and facebook
* backend code
2024-04-22 13:03:31 +02:00

34 lines
673 B
TypeScript

type NextValue = 'backend' | 'debug' | 'webchat-video' | 'prosody'
| 'external-auth-custom-oidc' | 'external-auth-google-oidc' | 'external-auth-facebook-oidc'
| 'everything-ok'
interface MessageWithLevel {
level: 'info' | 'warning' | 'error'
message: string
help?: {
url: string
text: string
}
}
export interface TestResult {
label?: string
messages: Array<string | MessageWithLevel>
debug: Array<{
title: string
message: string
}>
next: NextValue | null
ok: boolean
test: string
}
export function newResult (test: string): TestResult {
return {
test: test,
ok: false,
messages: [],
debug: [],
next: null
}
}