Skip to content

StartAuthentication method is encoding the userHandle twice from version v10.0.0 #666

@DivyaSampath04

Description

@DivyaSampath04

Below is one of the change in @simplewebauthn/[email protected]
Additionally, startRegistration() will base64url-decode user.id before calling WebAuthn. During auth startAuthentication() will base64url-encode userHandle in the returned credential. This should be a transparent change for RP's that simply feed @simplewebauthn/server options output into the corresponding @simplewebauthn/browser methods.

Issue:
startAuthentication method is already returning userHandle in base64 encoded format.After upgrading to latest version, userHandle is being encoded twice which is impacting the existing webAuthn user during authentication whereas new registration and authentication works fine.

I am using only the browser package v13.0.0 and using a different server strategy for my app.

Reproduction Steps

After upgrading to latest v13.0.0, authentication of existing users fail.

Expected behavior

Exsiting users authentication should not be affected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions