summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-02-06 16:49:42 +0100
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-02-19 14:15:07 +0100
commit2044e30d90fb2094d4a905d3a23071cb6937e383 (patch)
tree6e8e3e92cf24533d41a55d2374ede3b66ae3f504
parent8fe06ec8330c1992dd4519835a33c56809876568 (diff)
Server Tokens: Rename `expires_in` to `expires_at`
expires_in was confusing
-rw-r--r--types/server/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/types/server/server.go b/types/server/server.go
index 10b1cc4..a9c6934 100644
--- a/types/server/server.go
+++ b/types/server/server.go
@@ -104,7 +104,7 @@ type Tokens struct {
// Refresh is the refresh token
Refresh string `json:"refresh_token"`
// Expires is the Unix timestamp when the token expires
- Expires int64 `json:"expires_in"`
+ Expires int64 `json:"expires_at"`
}
// Server is the basic type for a server. This is the base for secure internet and institute access. Custom servers are equal to this type