Skip to content

Passkey new finalize enrollment #15163

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

Open
wants to merge 8 commits into
base: passkey-new-start-enrollment
Choose a base branch
from

Conversation

srushtisv
Copy link
Contributor

No description provided.

Copy link
Contributor

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments or fill out our survey to provide feedback.

@srushtisv srushtisv self-assigned this Jul 30, 2025
@google-oss-bot
Copy link

1 Warning
⚠️ Did you forget to add a changelog entry? (Add #no-changelog to the PR description to silence this warning.)

Generated by 🚫 Danger

@srushtisv srushtisv changed the base branch from passkey-new to passkey-new-start-enrollment July 30, 2025 22:41
@srushtisv srushtisv force-pushed the passkey-new-finalize-enrollment branch from 708f4d8 to 6bf5556 Compare July 31, 2025 06:25
@srushtisv srushtisv requested a review from pashanka July 31, 2025 06:44
@srushtisv srushtisv marked this pull request as ready for review July 31, 2025 07:41

let request = FinalizePasskeyEnrollmentRequest(
idToken: rawAccessToken(),
name: passkeyName ?? "Unnamed account (Apple)",
Copy link
Contributor

Choose a reason for hiding this comment

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

We would have already set this in start, do we really need to this check again?

Copy link
Contributor Author

@srushtisv srushtisv Jul 31, 2025

Choose a reason for hiding this comment

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

in this case, since passkeyName is an optional string, we either need to provide a default value like this, or force-unwrap using '!' to abort execution if the optional value contains nil. There's no compiler guarantee that startEnrollment would be called and will set the passkeyName. Although, we can add guard else throw{..} in the beginning to confirm that passkeyName is set but as we know in the passkey flow, finalizePasskeyEnrollment will always be called after startPasskeyEnrollment hence I didnt use an explicit error handling here and used the default name which could be the only case where passkeyName is nil. Please let me know if I should add a guard statement here also, in that case we can remove "Unnamed account (Apple)" from 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 think it's okay if we need to keep it, you can update this to use the same constant as you used in the StartEnrollment flow once you merge

@srushtisv srushtisv requested a review from pashanka July 31, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants