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

Feat: display last used time of WebAuthn credentials #600

Merged
merged 2 commits into from
Feb 27, 2023

Conversation

bjoern-m
Copy link
Contributor

Description

The details of a credential now also include the time when they were last used.

Implementation

DB changes:

  • A new Fied LastUsedAt added to the WebauthnCredentials table

API changes:

  • GET /webauthn/credentials will now return a list of credentials including last_used_at when present.
  • When finalising a create credential request, LastUsedAt will be initialised with the current timestamp.
  • When finalising a get credential request, LastUsedAt will be updated to the current timestamp.

Frontend SDK:

  • DTO updated

Elements:

  • The profile element will display the new date when expanding a passkey accordion tab (or a dash when unavailable).

@bjoern-m bjoern-m force-pushed the feat-display-last-used-time-of-webauthn-credentials branch from 960d36c to 9d03a24 Compare February 23, 2023 13:19
@bjoern-m bjoern-m marked this pull request as ready for review February 23, 2023 13:26
@bjoern-m bjoern-m merged commit b97f051 into main Feb 27, 2023
@bjoern-m bjoern-m deleted the feat-display-last-used-time-of-webauthn-credentials branch February 27, 2023 09:52
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

Successfully merging this pull request may close these issues.

None yet

2 participants