mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
19 lines
536 B
TypeScript
19 lines
536 B
TypeScript
import { ENV } from '@opencode-manager/shared/config/env'
|
|
import type { AuthEnv } from '../../src/auth'
|
|
|
|
export function createAuthEnv(overrides: Partial<AuthEnv> = {}): AuthEnv {
|
|
return {
|
|
...ENV.AUTH,
|
|
ADMIN_EMAIL: undefined,
|
|
ADMIN_PASSWORD: undefined,
|
|
ADMIN_PASSWORD_RESET: false,
|
|
GITHUB_CLIENT_ID: undefined,
|
|
GITHUB_CLIENT_SECRET: undefined,
|
|
GOOGLE_CLIENT_ID: undefined,
|
|
GOOGLE_CLIENT_SECRET: undefined,
|
|
DISCORD_CLIENT_ID: undefined,
|
|
DISCORD_CLIENT_SECRET: undefined,
|
|
...overrides,
|
|
}
|
|
}
|