Always resetup oidc client record for apps

This commit is contained in:
Johannes Zellner
2024-02-15 12:40:58 +01:00
parent 307a3ee015
commit 66da8dd4dc
+3
View File
@@ -1986,6 +1986,9 @@ async function setupOidc(app, options) {
};
// openid client_id is appId for now
// first remove old entry if any
await safe(oidc.clients.del(app.id));
const [error] = await safe(oidc.clients.add(app.id, data));
if (error && error.reason !== BoxError.ALREADY_EXISTS) throw error;
}