Skip to content

Commit adba2d6

Browse files
committed
feat(tests): add unit tests for Lucia authentication library and GitHub instance reset functionality
1 parent ae7fbef commit adba2d6

File tree

3 files changed

+508
-0
lines changed

3 files changed

+508
-0
lines changed

services/backend/src/lib/lucia.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ export function resetLucia(): void {
118118
luciaInstance = null;
119119
}
120120

121+
// Function to reset GitHub instance (useful for testing or config changes)
122+
export function resetGithubAuth(): void {
123+
githubAuthInstance = null;
124+
}
125+
121126
// Force reset on module reload in development
122127
if (process.env.NODE_ENV !== 'production') {
123128
resetLucia();

0 commit comments

Comments
 (0)