Repository navigation
feat: track and display last used timestamp for API tokens - #2760
ggoswami777 wants to merge 1 commit into
Conversation
|
@ggoswami777 is attempting to deploy a commit to the Documenso Team Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
This PR has not seen activitiy for a while. It will be closed in 30 days unless further activity is detected. |
|
This PR has been closed because of inactivity. |
Description
Hello! This PR implements the
lastUsedAtfield for API tokens to help users track token hygiene and security, as requested in #2756.Changes
lastUsedAtDateTime field to theApiTokenmodel.getApiTokenByTokento perform a non-blocking background write tolastUsedAtupon successful token validation. This ensures no additional latency is added to API requests.Why?
This provides admins with a clear signal on whether a token is actively being used or is safe to rotate/delete, aligning with industry standards like GitHub and Stripe.
Testing
##screenshots

Fixes #2756