You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The userHandle must map to a username, not a sub
551
+
if(username.startsWith("s|")){
552
+
debug?.(
553
+
"Credential userHandle isn't a username. In order to use the username as userHandle, so users can sign in without typing their username, usernames must be opaque"
554
+
);
555
+
thrownewError("Username is required for initiating sign-in");
556
+
}
557
+
// remove (potential) prefix to recover username
558
+
username=username.replace(/^u\|/,"");
550
559
debug?.(
551
560
`Proceeding with discovered credential for username: ${username} (b64: ${fido2credential.userHandleB64})`
0 commit comments