Skip to content

Commit 10881b3

Browse files
committed
fixup! Add support for signaling current user details and credentials
1 parent 7be1db9 commit 10881b3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/django_otp_webauthn/utils.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,11 @@ def get_attestation_model_string() -> str:
153153

154154

155155
def request_user_details_sync(request: HttpRequest) -> None:
156-
"""Causes the `{% render_otp_webauthn_sync_signals_scripts %}` template tag
157-
to render a script that calls the `PublicKeyCredential.signalCurrentUserDetails`
156+
"""Marks the current session as needing user details and accepted credentials
157+
synchronization with the browser.
158+
159+
The implementation will cause the `{% render_otp_webauthn_sync_signals_scripts %}`
160+
template tag to render a script that calls the `PublicKeyCredential.signalCurrentUserDetails`
158161
and `PublicKeyCredential.signalAllAcceptedCredentials` browser apis on the
159162
next page load.
160163

0 commit comments

Comments
 (0)