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

passkey config admin changes #2326

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open

passkey config admin changes #2326

wants to merge 27 commits into from

Conversation

pragatimodi
Copy link
Contributor

No description provided.

@pragatimodi pragatimodi marked this pull request as draft October 4, 2023 17:06
@pragatimodi pragatimodi marked this pull request as ready for review October 18, 2023 18:38
src/auth/passkey-config-manager.ts Outdated Show resolved Hide resolved
src/auth/passkey-config-manager.ts Show resolved Hide resolved
src/auth/passkey-config.ts Outdated Show resolved Hide resolved
src/auth/passkey-config.ts Outdated Show resolved Hide resolved
src/auth/passkey-config.ts Outdated Show resolved Hide resolved
src/auth/passkey-config.ts Outdated Show resolved Hide resolved
src/auth/passkey-config.ts Outdated Show resolved Hide resolved
src/auth/passkey-config.ts Outdated Show resolved Hide resolved
src/auth/passkey-config.ts Outdated Show resolved Hide resolved
src/auth/passkey-config.ts Outdated Show resolved Hide resolved
Co-authored-by: Kevin Cheung <kevinthecheung@users.noreply.github.com>
Copy link

@renkelvin renkelvin left a comment

Choose a reason for hiding this comment

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

LGTM

@Xiaoshouzi-gh
Copy link
Contributor

what is the plan for integration tests?

@pragatimodi
Copy link
Contributor Author

@Xiaoshouzi-gh integration tests have been drafted in this PR. Waiting on backend to allow this.

@@ -69,4 +72,13 @@ export class Auth extends BaseAuth {
public projectConfigManager(): ProjectConfigManager {
return this.projectConfigManager_;
}

/**
* Returns the passkey config manager instance.
Copy link
Contributor

Choose a reason for hiding this comment

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

can you update this api reference? looks redundant.

);
}
// Validation for updating an existing PasskeyConfig.
if (!isCreateRequest && typeof rpId !== 'undefined') {
Copy link
Contributor

Choose a reason for hiding this comment

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

do you allow customer to pass in the existing value rpId for updates?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doesn't that seem a little redundant? Since we can't change rpId once created?

src/auth/passkey-config.ts Show resolved Hide resolved
src/auth/passkey-config.ts Outdated Show resolved Hide resolved
test/unit/auth/passkey-config.spec.ts Show resolved Hide resolved
pragatimodi and others added 7 commits April 2, 2024 14:13
* user record changes for getAccountInfo()

* lint and api-extractor fixes

* Apply suggestions from code review

Co-authored-by: Kevin Cheung <kevinthecheung@users.noreply.github.com>

* remove `[key: string]: unknown;` field from `PasskeyInfoResponse`

* add undefined displayName case

* name and credentialId are not optional

* add `rpId` to update

---------

Co-authored-by: Kevin Cheung <kevinthecheung@users.noreply.github.com>
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.

None yet

5 participants