Type aliases
AuthDelegatorOptions
Auth
Delegator
Options
<Data, Channel>: { bot
: SociablyBot<Channel, unknown, unknown>; checkAuthData
: CheckAuthDataFn<Data, Channel>; platform
: string; platformColor
: string; platformImageUrl
: string; platformName
: string; getChatLink
: any }Type parameters
Type declaration
bot: SociablyBot<Channel, unknown, unknown>
platform: string
platformColor: string
platformImageUrl: string
platformName: string
getChatLink:function
- getChatLink(channel: Channel): string
BasicAuthLoginState
BasicAuthLoginState<Data>: { ch: string; data: Data; redirect: undefined | string; status: "login" }
Type parameters
Type declaration
ch: string
data: Data
redirect: undefined | string
status: "login"
BasicAuthOptions
Basic
Auth
Options
: { appIconUrl
?: string; appName
?: string; codeMessageComponent
?: CodeMessageComponent; loginCodeDigits
?: number; loginDuration
?: number; maxLoginAttempt
?: number; mode
?: "loose" | "strict" }Type declaration
Optional appIconUrl?: string
Optional appName?: string
Optional loginCodeDigits?: number
Optional loginDuration?: number
Optional maxLoginAttempt?: number
Optional mode?: "loose" | "strict"
BasicAuthState
Type parameters
BasicAuthVerifyState
BasicAuthVerifyState<Data>: { ch: string; data: Data; hash: string; redirect: undefined | string; status: "verify"; ts: number }
Type parameters
Type declaration
ch: string
data: Data
hash: string
redirect: undefined | string
status: "verify"
ts: number
CheckAuthDataFn
CheckAuthDataFn<Data, Channel>: (data: Data) => { channel: Channel; data: Data; ok: true } | { code: number; ok: false; reason: string }
Type parameters
Type declaration
- (data: Data): { channel: Channel; data: Data; ok: true } | { code: number; ok: false; reason: string }
Parameters
Returns { channel: Channel; data: Data; ok: true } | { code: number; ok: false; reason: string }
CodeMessageComponentProps
CodeMessageComponentProps: { browserName?: string; code: string; deviceModel?: string; deviceType?: string; domain: string; ip: string; osName?: string }
Type declaration
Optional browserName?: string
code: string
Optional deviceModel?: string
Optional deviceType?: string
domain: string
ip: string
Optional osName?: string
VerifyCodeRequestBody
VerifyCodeRequestBody: { code: string }
VerifyCodeResponseBody
VerifyCodeResponseBody: { ok: boolean; redirectTo: string; retryChances: number }
Type declaration
ok: boolean
redirectTo: string
retryChances: number