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

Error: Key creation failed due to some error #24

Open
MichaelJiang1997 opened this issue Aug 24, 2021 · 0 comments
Open

Error: Key creation failed due to some error #24

MichaelJiang1997 opened this issue Aug 24, 2021 · 0 comments

Comments

@MichaelJiang1997
Copy link

hi, when I run install.sh in my WSL, it says "Error: Key creation failed due to some error". I check the WindowsHelloKeyCredentialCreator source code and find you call KeyCredentialManager.RequestCreateAsync() without any precheck if the user didn't set up PIN. here are the example from https://docs.microsoft.com/en-us/windows/uwp/security/microsoft-passport

var keyCredentialAvailable = await KeyCredentialManager.IsSupportedAsync();
if (!keyCredentialAvailable)
{
    // User didn't set up PIN yet
    return;
}
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

No branches or pull requests

1 participant