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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user