Skip to content

fix: invalidate access token cache on device deletion#234

Closed
FrenchGithubUser wants to merge 1 commit into
masterfrom
thomast/deleted-device-token
Closed

fix: invalidate access token cache on device deletion#234
FrenchGithubUser wants to merge 1 commit into
masterfrom
thomast/deleted-device-token

Conversation

@FrenchGithubUser

Copy link
Copy Markdown
Member

When an access token had a refresh token associated to it in the database, deleting this refresh token (for example when deleting the device using it) would cascade delete the access token, which wouldn't be returned by the sql query that was supposed to delete it on its own, and an empty array was passed to the cache invalidation function.

@FrenchGithubUser
FrenchGithubUser marked this pull request as ready for review February 9, 2026 16:09
@FrenchGithubUser
FrenchGithubUser requested a review from a team as a code owner February 9, 2026 16:09
Copilot AI review requested due to automatic review settings February 9, 2026 16:09
when an access token had a refresh token associated to it in the
database, deleting this refresh token (for example when deleting the
device using it) would cascade delete the access token, which wouldn't
be returned by the sql query that was supposed to delete it on its own,
and an empty array was passed to the cache invalidation function.
@FrenchGithubUser
FrenchGithubUser force-pushed the thomast/deleted-device-token branch from 6446845 to ca0d1c4 Compare February 9, 2026 16:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

3 participants