Perpetual auth token is having expiry of 24h

Hi,

As a health locker, we will be storing the user’s auth token that is obtained when user approves an authorization request. In the approve auth payload, we are sending the "generatePerpetualToken": true

{
  "generatePerpetualToken": true
}

Upon this, we are receiving the payload of /v0.5/users/auth/notify callback which has the token to be used for linking and approving consents on user’s behalf.

But when checked the details of the token on jwt.io, we are seeing that the token is having validity of only 24h.

Payload received

{
    "requestId": "06b410a2-ba3e-41b4-b034-7cdce0a792e9",
    "timestamp": "2022-02-16T13:49:05.231803",
    "auth": {
        "transactionId": "9d128fb6-efc1-4dc0-9bf7-4b9da13a575f",
        "status": "GRANTED",
        "accessToken": "eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiI0Ni0wMjA1LTg1NTYtNjgxNyIsInJlcXVlc3RlclR5cGUiOiJISVAiLCJyZXF1ZXN0ZXJJZCI6IkVLQV9ISVAiLCJwYXRpZW50SWQiOiI0Ni0wMjA1LTg1NTYtNjgxNyIsInNlc3Npb25JZCI6ImE3MWU5MmFkLWE4NTAtNDZjYi04MTQ2LWRlZTcyNzUzZTI1YiIsImV4cCI6MTY0NTEwNTc0NSwiaWF0IjoxNjQ1MDE5MzQ1fQ.Y00LQUlITf3NrxjIYalciWImlAqDBj6haaqzcpoFpo6L-ElrGUybpBBgmmNC3djkVpNfYctBwUbqrQpwBn9qGrkXENWlF0t6WK3kipjH-lGnXQychSxpFwMxRDWbz2IFg9xnAxKeb6CnD--TujRC9uFVLfaYFrL8dTAyvA2Y7EuDcPAHhvRUqXe8gpc8TJXrXNry4SBeM5nKEcGMvLBERvStuMLilpR2xgrKgwFa6_EeDDRZckzDDqKIU3iUGrBxGNClSyLyN__ULrVWDrG1YfLNuViuPbJn8anbGmYvcRpQKfylJtG5PiiubgwzeYivjtGc7RtYZnw3N6kn3tUO2A",
        "validity": {
            "purpose": "KYC_AND_LINK",
            "requester": {
                "type": "HIP",
                "id": "EKA_HIP",
                "name": null
            },
            "expiry": "2023-02-16T13:49:05.231688",
            "limit": 1
        },
        "patient": {
            "id": "bobthebuilder@sbx",
            "name": "Ayush Kumar",
            "gender": "M",
            "yearOfBirth": 1900,
            "address": {
                "line": null,
                "district": "some val",
                "state": "some val",
                "pincode": null
            },
            "healthIdNumber": null,
            "identifiers": [
                {
                    "type": "MOBILE",
                    "value": "1234567890"
                }
            ]
        }
    }
}

Decoded token

{
  "sub": "46-0205-8556-6817",
  "requesterType": "HIP",
  "requesterId": "EKA_HIP",
  "patientId": "46-0205-8556-6817",
  "sessionId": "a71e92ad-a850-46cb-8146-dee72753e25b",
  "exp": 1645105745,     // Feb 17, 7:19PM
  "iat": 1645019345       //  Feb 16, 7:19PM
}

Thanks,
Ayush