From fdfd1829257c3ae634f93a7b4b39c16991a4e11a Mon Sep 17 00:00:00 2001 From: aghArdeshir Date: Sun, 22 Jan 2023 00:21:29 +0100 Subject: [PATCH] consistent examples for time values --- docs/content/en/schemes/oauth2.md | 4 ++-- docs/content/en/schemes/openIDConnect.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/en/schemes/oauth2.md b/docs/content/en/schemes/oauth2.md index 556a96272..cef05f89d 100644 --- a/docs/content/en/schemes/oauth2.md +++ b/docs/content/en/schemes/oauth2.md @@ -54,7 +54,7 @@ auth: { token: { property: 'access_token', type: 'Bearer', - maxAge: 1800 + maxAge: 60 * 30 }, refreshToken: { property: 'refresh_token', @@ -119,7 +119,7 @@ It will be used in `Authorization` header of axios requests. #### `maxAge` -- Default: `1800` +- Default: `60 * 30` Here you set the expiration time of the token, in **seconds**. This time will be used if for some reason we couldn't decode the token to get the expiration date. diff --git a/docs/content/en/schemes/openIDConnect.md b/docs/content/en/schemes/openIDConnect.md index 463a2dcbd..23661bcbc 100644 --- a/docs/content/en/schemes/openIDConnect.md +++ b/docs/content/en/schemes/openIDConnect.md @@ -108,7 +108,7 @@ It will be used in `Authorization` header of axios requests. #### `maxAge` -- Default: `1800` +- Default: `60 * 30` Here you set the expiration time of the token, in **seconds**. This time will be used if for some reason we couldn't decode the token to get the expiration date. @@ -129,7 +129,7 @@ The OpenIDConnect scheme will save both the access and ID token. This because to #### `maxAge` -- Default: `1800` +- Default: `60 * 30` Here you set the expiration time of the ID token, in **seconds**. This time will be used if for some reason we couldn't decode the ID token to get the expiration date.