- Updated all package.json name fields and dependency references - Updated all TypeScript/JavaScript imports - Updated .woodpecker/publish.yml filters and registry paths - Updated tools/install.sh scope default - Updated .npmrc registry paths (worktree + host) - Enhanced update-checker.ts with checkForAllUpdates() multi-package support - Updated CLI update command to show table of all packages - Added KNOWN_PACKAGES, formatAllPackagesTable, getInstallAllCommand - Marked checkForUpdate() with @deprecated JSDoc Closes #391
26 lines
689 B
TypeScript
26 lines
689 B
TypeScript
import { Global, Module } from '@nestjs/common';
|
|
import { createAuth, type Auth } from '@mosaicstack/auth';
|
|
import type { Db } from '@mosaicstack/db';
|
|
import { DB } from '../database/database.module.js';
|
|
import { AUTH } from './auth.tokens.js';
|
|
import { SsoController } from './sso.controller.js';
|
|
|
|
@Global()
|
|
@Module({
|
|
controllers: [SsoController],
|
|
providers: [
|
|
{
|
|
provide: AUTH,
|
|
useFactory: (db: Db): Auth =>
|
|
createAuth({
|
|
db,
|
|
baseURL: process.env['BETTER_AUTH_URL'] ?? 'http://localhost:14242',
|
|
secret: process.env['BETTER_AUTH_SECRET'],
|
|
}),
|
|
inject: [DB],
|
|
},
|
|
],
|
|
exports: [AUTH],
|
|
})
|
|
export class AuthModule {}
|