config: switch to authMethod config for auth method selection

This commit is contained in:
Jesse Chan
2020-10-26 20:21:00 +08:00
parent 7e56cd99ac
commit ccb410d2e5
15 changed files with 64 additions and 34 deletions
+2
View File
@@ -4,6 +4,8 @@ import type {infer as zodInfer} from 'zod';
import {AccessLevel} from './constants/Auth';
import {clientConnectionSettingsSchema} from './ClientConnectionSettings';
export type AuthMethod = 'default' | 'none';
export const credentialsSchema = object({
username: string(),
password: string(),