Skip to content

Commit 54a2099

Browse files
committed
fix: correct credentials structure
1 parent 46bc05b commit 54a2099

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

src/Identity/v3/Api.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -695,10 +695,7 @@ public function postCredentials(): array
695695
'method' => 'POST',
696696
'path' => 'credentials',
697697
'params' => [
698-
'blob' => $this->params->blob(),
699-
'projectId' => $this->params->projectId(),
700-
'type' => $this->params->type('credential'),
701-
'userId' => $this->params->userId(),
698+
'credential' => $this->params->credential(),
702699
],
703700
];
704701
}

src/Identity/v3/Params.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,4 +333,17 @@ public function blob(): array
333333
'description' => "This does something, but it's not explained in the docs (as of writing this)",
334334
];
335335
}
336+
337+
public function credential(): array
338+
{
339+
return [
340+
'type' => 'object',
341+
'properties' => [
342+
'blob' => $this->blob(),
343+
'projectId' => $this->projectId(),
344+
'type' => $this->type('credential'),
345+
'userId' => $this->userId(),
346+
],
347+
];
348+
}
336349
}

0 commit comments

Comments
 (0)