[PR #239] fix: session expiration time #243

Open
opened 2026-03-03 15:30:52 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/luthermonson/go-proxmox/pull/239
Author: @sergelogvinov
Created: 1/25/2026
Status: 🔄 Open

Base: mainHead: session-timout


📝 Commits (1)

  • 0d6b289 fix: session expiration time

📊 Changes

2 files changed (+6 additions, -2 deletions)

View changed files

📝 access.go (+4 -1)
📝 proxmox.go (+2 -1)

📄 Description

The Proxmox session token is valid for only 2 hours. We need to check the expiration time before sending an error.

https://forum.proxmox.com/threads/extend-api-token-lifetime.63320/

I've set to one c.sessionExpiresAt = time.Now().Add(time.Hour). We may have an issue due to timezone changes.

Thanks.


🔄 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/luthermonson/go-proxmox/pull/239 **Author:** [@sergelogvinov](https://github.com/sergelogvinov) **Created:** 1/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `session-timout` --- ### 📝 Commits (1) - [`0d6b289`](https://github.com/luthermonson/go-proxmox/commit/0d6b289c23e51d0f996fa1c66df4ab949072f49d) fix: session expiration time ### 📊 Changes **2 files changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `access.go` (+4 -1) 📝 `proxmox.go` (+2 -1) </details> ### 📄 Description The Proxmox session token is valid for only 2 hours. We need to check the expiration time before sending an error. https://forum.proxmox.com/threads/extend-api-token-lifetime.63320/ I've set to one `c.sessionExpiresAt = time.Now().Add(time.Hour)`. We may have an issue due to timezone changes. Thanks. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
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/go-proxmox#243
No description provided.