Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nicolas/dash 329 dapi delete ability to delete passkey #320

Merged

Conversation

NicolasLopes7
Copy link
Contributor

@NicolasLopes7 NicolasLopes7 commented Sep 3, 2024

This PR implements a new method from a new BAPI endpoint to delete passkeys. It's all under the users' client.

@NicolasLopes7 NicolasLopes7 requested a review from a team as a code owner September 3, 2024 19:01
@NicolasLopes7 NicolasLopes7 changed the base branch from main to v2 September 3, 2024 19:01
@NicolasLopes7 NicolasLopes7 force-pushed the nicolas/dash-329-dapi-delete-ability-to-delete-passkey branch from 505d6dc to 3445b5e Compare September 3, 2024 19:02
user/api.go Outdated Show resolved Hide resolved
user/client.go Outdated Show resolved Hide resolved
NicolasLopes7 and others added 2 commits September 3, 2024 16:25
Co-authored-by: Kevin Wang <[email protected]>
Co-authored-by: Kevin Wang <[email protected]>
},
}
client := NewClient(config)
passkey, err := client.DeletePasskey(context.Background(), userID, passkeyIdentificationID)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ Do we need to seed a passkey?
What happens if we call client.DeletePasskey twice in this test?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the test only asserts the http call for BAPI through the transporter. Defined here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, so Out is effectively the mocked-expected-response

@NicolasLopes7 NicolasLopes7 merged commit 240f3a5 into v2 Sep 3, 2024
5 checks passed
@NicolasLopes7 NicolasLopes7 deleted the nicolas/dash-329-dapi-delete-ability-to-delete-passkey branch September 3, 2024 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants