Do not throw if oidc addon client already exists

This commit is contained in:
Johannes Zellner
2023-04-21 15:09:49 +02:00
parent 5ac8e89c8e
commit bd7e931674
+2 -1
View File
@@ -1948,7 +1948,8 @@ async function setupOidc(app, options) {
};
// openid client_id is appId for now
await oidc.clients.add(app.id, data);
const [error] = await safe(oidc.clients.add(app.id, data));
if (error && error.reason !== BoxError.ALREADY_EXISTS) throw error;
}
async function teardownOidc(app, options) {