feat: basic support for Keycloak (OIDC)

This commit is contained in:
Tomáš Hruška
2023-11-09 11:41:08 +01:00
parent 518b94b1f4
commit 946eed3773
8 changed files with 122 additions and 10 deletions
@@ -22,7 +22,7 @@ export default async function deleteUserById(
}
// Then, we check if the provided password matches the one stored in the database
const isPasswordValid = bcrypt.compareSync(body.password, user.password);
const isPasswordValid = bcrypt.compareSync(body.password, user.password || "");
if (!isPasswordValid) {
return {