mirror of
https://github.com/oxynote/oxynote.git
synced 2026-10-17 10:59:20 +02:00
17 lines
690 B
TypeScript
17 lines
690 B
TypeScript
export type AuthMethod = "email-password" | "github" | "google" | "slack"
|
|
|
|
export interface AuthConfig {
|
|
methods: AuthMethod[]
|
|
emailEnabled: boolean
|
|
// if true, the whole instance is one workspace: it exists from the start, and
|
|
// only invited users sign up.
|
|
singleOrganization: boolean
|
|
// null when a workspace takes any number of members.
|
|
maxOrganizationMembers: number | null
|
|
// the account that still has the default admin email. The server finds
|
|
// it by that email. So a new email makes the whole value null. The
|
|
// password is null once the admin changes it. Always null outside
|
|
// single-workspace mode.
|
|
defaultAdmin: { email: string; password: string | null } | null
|
|
}
|