Skip to content

Commit 2eb4a66

Browse files
authored
fix: use the correct env variable in the credentials provider (#1589)
1 parent fab1ab6 commit 2eb4a66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • application/CohortManager/src/Web/app/lib

application/CohortManager/src/Web/app/lib/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export const { handlers, auth, signIn, signOut } = NextAuth({
114114

115115
// Handle test accounts in development
116116
if (
117-
process.env.NODE_ENV === "development" &&
117+
process.env.APP_ENV === "development" &&
118118
account?.provider === "credentials"
119119
) {
120120
Object.assign(token, {

0 commit comments

Comments
 (0)