Slackbot
09/12/2023, 5:28 PMSai Dy
09/12/2023, 5:28 PMJason Bosco
09/12/2023, 5:28 PMSai Dy
09/12/2023, 5:30 PMSai Dy
09/12/2023, 5:30 PMSai Dy
09/12/2023, 5:30 PMJason Bosco
09/12/2023, 5:31 PMafter calling it again after expiryOnce the key expires, then it can't be used... Unless I misunderstood that statement
Sai Dy
09/12/2023, 5:33 PMJason Bosco
09/12/2023, 5:35 PMexpiryTime ? Math.floor(Date.now() / 1000) + exp : Math.floor(Date.now() / 1000) + 100
This will expire it in 100 seconds from creation no?Jason Bosco
09/12/2023, 5:36 PMexp is undefined in that code snippet, so may be it's expiring it right awaySai Dy
09/12/2023, 5:36 PMJason Bosco
09/12/2023, 5:37 PMGET /keys and post the output?Sai Dy
09/12/2023, 5:39 PMSai Dy
09/12/2023, 5:39 PM{
"keys": [
{
"actions": [
"documents:search"
],
"collections": [
"*"
],
"description": "API Key",
"expires_at": 1694540963,
"id": 2210,
"value_prefix": "pVIB"
}
]
}Jason Bosco
09/12/2023, 5:42 PMJason Bosco
09/12/2023, 5:42 PMSai Dy
09/12/2023, 5:42 PMJason Bosco
09/12/2023, 5:43 PMSai Dy
09/12/2023, 5:43 PMSai Dy
09/12/2023, 5:44 PMJason Bosco
09/12/2023, 5:44 PMgenerate anotherGenerate another parent search API key by making a call to
POST /keys correct?Sai Dy
09/12/2023, 5:45 PMJason Bosco
09/12/2023, 5:45 PMJason Bosco
09/12/2023, 5:46 PMSai Dy
09/12/2023, 5:49 PMJason Bosco
09/12/2023, 5:50 PMSai Dy
09/12/2023, 5:50 PMSai Dy
09/12/2023, 5:51 PM{
"keys": [
{
"actions": [
"documents:search"
],
"collections": [
"*"
],
"description": "API Key",
"expires_at": 1694540963,
"id": 2210,
"value_prefix": "pVIB"
},
{
"actions": [
"documents:search"
],
"collections": [
"*"
],
"description": "API Key",
"expires_at": 1694540963,
"id": 2211,
"value_prefix": "VP6i"
},
{
"actions": [
"documents:search"
],
"collections": [
"*"
],
"description": "API Key",
"expires_at": 1694540963,
"id": 2212,
"value_prefix": "OtJj"
}
]
}Sai Dy
09/12/2023, 5:51 PMJason Bosco
09/12/2023, 5:52 PMJason Bosco
09/12/2023, 5:52 PMSai Dy
09/12/2023, 5:53 PMSai Dy
09/12/2023, 5:54 PMJason Bosco
09/12/2023, 6:02 PM