1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-06 22:20:06 +00:00

feat: make refresh token duration configurable

This commit is contained in:
2022-11-10 21:02:20 +05:00
parent 2413c05fea
commit abd5c64b4a
6 changed files with 37 additions and 9 deletions

View File

@@ -62,6 +62,11 @@ components:
format: double
description: 'Number of days in which access token will expire'
example: 1
refreshTokenExpiryDays:
type: number
format: double
description: 'Number of days in which access token will expire'
example: 30
required:
- clientId
- clientSecret
@@ -684,7 +689,7 @@ paths:
$ref: '#/components/schemas/ClientPayload'
examples:
'Example 1':
value: {clientId: someFormattedClientID1234, clientSecret: someRandomCryptoString, accessTokenExpiryDays: 1}
value: {clientId: someFormattedClientID1234, clientSecret: someRandomCryptoString, accessTokenExpiryDays: 1, refreshTokenExpiryDays: 30}
summary: 'Create client with the following attributes: ClientId, ClientSecret, accessTokenExpires (optional) . Admin only task.'
tags:
- Client