[PR #415] [MERGED] Fix token expiration time #812

Closed
opened 2026-02-28 14:53:27 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Rigellute/spotify-tui/pull/415
Author: @TimotheeGerber
Created: 4/25/2020
Status: Merged
Merged: 4/27/2020
Merged by: @Rigellute

Base: masterHead: token-expiration


📝 Commits (1)

  • 9baab61 Fix token expiration datetime

📊 Changes

3 files changed (+17 additions, -11 deletions)

View changed files

📝 src/app.rs (+4 -4)
📝 src/main.rs (+2 -2)
📝 src/network.rs (+11 -5)

📄 Description

When using the cached Spotify token, the expiration time was not correctly computed. As a consequence, the re-authentication was not triggered.

I had to move from Instant to SystemTime. I hope this is OK.

Closes #410


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Rigellute/spotify-tui/pull/415 **Author:** [@TimotheeGerber](https://github.com/TimotheeGerber) **Created:** 4/25/2020 **Status:** ✅ Merged **Merged:** 4/27/2020 **Merged by:** [@Rigellute](https://github.com/Rigellute) **Base:** `master` ← **Head:** `token-expiration` --- ### 📝 Commits (1) - [`9baab61`](https://github.com/Rigellute/spotify-tui/commit/9baab61c8f386806e3d335a28d25499bbc18acaf) Fix token expiration datetime ### 📊 Changes **3 files changed** (+17 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `src/app.rs` (+4 -4) 📝 `src/main.rs` (+2 -2) 📝 `src/network.rs` (+11 -5) </details> ### 📄 Description When using the cached Spotify token, the expiration time was not correctly computed. As a consequence, the re-authentication was not triggered. I had to move from `Instant` to `SystemTime`. I hope this is OK. Closes #410 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 14:53:27 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-tui#812
No description provided.