1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-11 03:34:35 +00:00

fix: change the expiration of access/refresh tokens from days to seconds

This commit is contained in:
2022-11-15 15:48:03 +05:00
parent fb6a556630
commit bb054938c5
7 changed files with 44 additions and 33 deletions

View File

@@ -57,16 +57,16 @@ components:
type: string
description: 'Client Secret'
example: someRandomCryptoString
accessTokenExpiryDays:
accessTokenExpiration:
type: number
format: double
description: 'Number of days in which access token will expire'
example: 1
refreshTokenExpiryDays:
description: 'Number of seconds after which access token will expire'
example: 86400
refreshTokenExpiration:
type: number
format: double
description: 'Number of days in which access token will expire'
example: 30
description: 'Number of days after which access token will expire'
example: 2592000
required:
- clientId
- clientSecret
@@ -689,7 +689,11 @@ paths:
$ref: '#/components/schemas/ClientPayload'
examples:
'Example 1':
value: {clientId: someFormattedClientID1234, clientSecret: someRandomCryptoString, accessTokenExpiryDays: 1, refreshTokenExpiryDays: 30}
value: {clientId: someFormattedClientID1234, clientSecret: someRandomCryptoString}
'Example 2':
value: {clientId: someFormattedClientID1234, clientSecret: someRandomCryptoString, accessTokenExpiration: 86400}
'Example 3':
value: {clientId: someFormattedClientID1234, clientSecret: someRandomCryptoString, accessTokenExpiration: 86400}
summary: "Admin only task. Create client with the following attributes:\nClientId,\nClientSecret,\naccessTokenExpiryDays (optional),\nrefreshTokenExpiryDays (optional)"
tags:
- Client