Skip to content

Missing rpId field when using supertokens_python.recipe.webauthn.sign_in_options #619

@JeanLuX

Description

@JeanLuX

🐛 Bug Report

Description
The rpId field appears to be missing from the SignInOptionsResponse class.

Current definition:
SignInOptionsResponse

However, the Front Driver Interface (FDI) does include this field:
FDI SignInOptions


🔍 Context

The rpId field is defined in the PublicKeyCredentialRequestOptions specification and appears to be required for native passkey authentication on Android.

When the field is missing, attempting to sign in using react-native-passkey results in the following error:

{"error": "NoCredentials", "message": "No viable credential is available for the user."}

💡 Workaround

A temporary workaround is to manually inject the rpId field into the JSON response returned by the API.

Image

✅ Expected Behavior

The rpId field should be included in the SignInOptionsResponse , as shown in the FDI documentation and required by the WebAuthn specification. This would allow native passkey authentication to work correctly without manual modification of the response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions