Skip to content

Conversation

@dkhalife
Copy link
Owner

@dkhalife dkhalife commented Mar 9, 2025

No description provided.

Copilot AI review requested due to automatic review settings March 9, 2025 06:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

PR Overview

This PR adds functionality for sending email reminders for expiring app tokens and cleaning up expired tokens. Key changes include:

  • Introducing a new AppTokenCleaner service in the housekeeper package with methods to send token expiration reminders and perform token cleanup.
  • Extending the UserRepository with methods to fetch tokens nearing expiration and delete stale tokens.
  • Updating configuration files, scheduler, and README to support the new token-related jobs.

Reviewed Changes

File Description
internal/services/housekeeper/app_tokens.go Adds AppTokenCleaner with SendTokenExpirationReminder and CleanupExpiredTokens methods
internal/repos/user/user.go Adds methods for retrieving nearing expiration tokens and deleting stale tokens
internal/utils/email/email.go Adds SendTokenExpirationReminder to generate email notifications
config/* Updates configs and README to include token expiration reminder settings
internal/services/scheduler/scheduler.go Adds scheduler jobs for token expiration reminder and cleanup

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

@dkhalife dkhalife merged commit 00f61c0 into main Mar 9, 2025
4 checks passed
@dkhalife dkhalife deleted the token-jobs branch March 9, 2025 06:46
dkhalife added a commit that referenced this pull request Oct 5, 2025
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.

2 participants