Skip to content

rust/sqlx: Refresh the token every 10 minutes#124

Merged
danielfrankcom merged 1 commit intomainfrom
feat/rust-sqlx-token-refresh
May 9, 2025
Merged

rust/sqlx: Refresh the token every 10 minutes#124
danielfrankcom merged 1 commit intomainfrom
feat/rust-sqlx-token-refresh

Conversation

@danielfrankcom
Copy link
Copy Markdown
Contributor

This PR was originally opened by Marc Bowes as #111, but I managed to mess up the state of that PR while trying to remove the Cargo.toml change. Here is a replacement which only changes the main.rs file.

Launch a tokio task that updates the password every 10 minutes. The tokens expire every 15 minutes. This is a stopgap until sqlx can be made to support this natively.

See also: launchbadge/sqlx#445

By submitting this pull request, I confirm that my contribution is made under
the terms of the MIT-0 license.

Launch a tokio task that updates the password every 10 minutes. The
tokens expire every 15 minutes. This is a stopgap until sqlx can be made
to support this natively.

See also: launchbadge/sqlx#445
@danielfrankcom danielfrankcom merged commit aa08d7c into main May 9, 2025
3 checks passed
@danielfrankcom danielfrankcom deleted the feat/rust-sqlx-token-refresh branch May 20, 2025 19:16
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