diff --git a/hydra/pkg/hydra/autosignup.mjs b/hydra/pkg/hydra/autosignup.mjs index 1463cb10..b2e1eaaf 100644 --- a/hydra/pkg/hydra/autosignup.mjs +++ b/hydra/pkg/hydra/autosignup.mjs @@ -133,7 +133,8 @@ export async function hydraAutoSignup(req) { let client; if (resp.data.length <= 0) { - client = await hydraAdmin.createOAuth2Client(clientModel); + const createResp = await hydraAdmin.createOAuth2Client(clientModel); + client = createResp.data; } else { client = resp.data[0]; await hydraAdmin.setOAuth2Client(client.client_id, clientModel);