1a52fe80f3
- Implemented multi-user authentication with role-based access control. - Added environment variables for initial admin user setup. - Updated README and example environment file with new authentication options. - Introduced user and system configuration models in the database schema. - Enhanced authentication middleware to support user registration and role management. - Updated frontend to handle new authentication flows, including admin user creation and role updates.
15 lines
313 B
TypeScript
15 lines
313 B
TypeScript
import { promises as fs } from "fs";
|
|
import path from "path";
|
|
|
|
const AUTH_STATE_PATH = path.resolve(__dirname, ".auth/storageState.json");
|
|
|
|
const globalTeardown = async () => {
|
|
try {
|
|
await fs.unlink(AUTH_STATE_PATH);
|
|
} catch {
|
|
// Ignore missing auth state file.
|
|
}
|
|
};
|
|
|
|
export default globalTeardown;
|