Skip to content

Commit 57cd2a1

Browse files
authoredFeb 3, 2025
Fix type for token.expires
1 parent 498109a commit 57cd2a1

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed
 

‎backend/schema/components/token-object.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
"additionalProperties": false,
66
"properties": {
77
"expires": {
8-
"description": "Token Expiry Unix Time",
9-
"example": 1566540249,
10-
"minimum": 1,
11-
"type": "number"
8+
"description": "Token Expiry ISO Time String",
9+
"example": "2025-02-04T20:40:46.340Z",
10+
"type": "string"
1211
},
1312
"token": {
1413
"description": "JWT Token",

‎backend/schema/paths/tokens/get.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"examples": {
1616
"default": {
1717
"value": {
18-
"expires": 1566540510,
18+
"expires": "2025-02-04T20:40:46.340Z",
1919
"token": "eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.ey...xaHKYr3Kk6MvkUjcC4"
2020
}
2121
}

‎backend/schema/paths/tokens/post.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"default": {
3939
"value": {
4040
"result": {
41-
"expires": 1566540510,
41+
"expires": "2025-02-04T20:40:46.340Z",
4242
"token": "eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.ey...xaHKYr3Kk6MvkUjcC4"
4343
}
4444
}

0 commit comments

Comments
 (0)
Failed to load comments.