Refactoring: better naming, to prepare other external authent.

This commit is contained in:
John Livingston
2024-04-19 09:53:23 +02:00
parent cfc5e98d90
commit 7afcbcf1a2
10 changed files with 33 additions and 33 deletions

View File

@ -107,17 +107,17 @@ type ChatPeertubeIncludeMode = 'peertube-fullpage' | 'peertube-video'
*/
type ChatIncludeMode = 'chat-only' | ChatPeertubeIncludeMode
interface OIDCAuthResultOk {
interface ExternalAuthResultOk {
ok: true
token: string
}
interface OIDCAuthResultError {
interface ExternalAuthResultError {
ok: false
message?: string
}
type OIDCAuthResult = OIDCAuthResultError | OIDCAuthResultOk
type ExternalAuthResult = ExternalAuthResultError | ExternalAuthResultOk
export type {
ConverseJSTheme,
@ -130,7 +130,7 @@ export type {
ChannelConfiguration,
ChatIncludeMode,
ChatPeertubeIncludeMode,
OIDCAuthResultError,
OIDCAuthResultOk,
OIDCAuthResult
ExternalAuthResultError,
ExternalAuthResultOk,
ExternalAuthResult
}