export class OidcConfigService {
	get issuer(): string {
		return process.env.OIDC_ISSUER ?? 'http://localhost:3001';
	}

	get accessTokenTtl(): number {
		return Number(process.env.OIDC_ACCESS_TOKEN_TTL ?? 900);
	}

	get refreshTokenTtl(): number {
		return Number(process.env.OIDC_REFRESH_TOKEN_TTL ?? 2592000);
	}

	get cookieKeys(): string[] {
		const keys = process.env.OIDC_COOKIE_KEYS ?? 'dev-cookie-key-minimum-32-chars';
		return keys.split(',').filter(Boolean);
	}
}
