Repository navigation
feat: SDK update for version 30.3.0 - #92
Conversation
🔵 Tier A · Mergeable after minor fixes
Adds PHP SDK support for passkey registration and sign-in, passkey management for accounts and users, and project passkey policy configuration. It also adds the associated response models, documentation, examples, and service tests for version 30.3.0.
Fix with agent prompt### Issue 1
tests/Appwrite/Services/AccountTest.php:763-764
**Assert the passkey request contract**
This stub accepts any `Client::call` arguments and only returns fixture data, so this test still passes if the method uses the wrong HTTP method or path, or sends incorrect parameters. The other new passkey method tests use the same pattern, leaving their request contracts unverified too.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.📂 Walkthrough · 6
Reviewed |
| ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) | ||
| ->andReturn($data); |
There was a problem hiding this comment.
Assert the passkey request contract
This stub accepts any Client::call arguments and only returns fixture data, so this test still passes if the method uses the wrong HTTP method or path, or sends incorrect parameters. The other new passkey method tests use the same pattern, leaving their request contracts unverified too.
Prompt To Fix With AI
This is a comment left during a code review.
Path: tests/Appwrite/Services/AccountTest.php
Line: 763-764
Comment:
**Assert the passkey request contract**
This stub accepts any `Client::call` arguments and only returns fixture data, so this test still passes if the method uses the wrong HTTP method or path, or sends incorrect parameters. The other new passkey method tests use the same pattern, leaving their request contracts unverified too.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.🟡 Minor · testing · Reply if this doesn't apply.
This PR contains updates to the SDK for version 30.3.0.
What's Changed
accountpasskey methodslistPasskeys,createPasskey,getPasskey,updatePasskey,deletePasskeyandupdatePasskeyVerificationaccount.createPasskeyTokenandaccount.updatePasskeyTokenfor passkey sign-inusers.listPasskeys,users.getPasskey,users.updatePasskeyandusers.deletePasskeyproject.updatePasskeyPolicyto configure passkey sign-inPasskey,PasskeyList,PasskeyChallengeandTokenSecretmodelsPasskeys only, patched onto
main: the diff of the SDK generated with and without the passkey methods, three-way merged onto the release. Everything else on the release is unchanged, including itsX-Appwrite-Response-Format.