You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by ne...@apache.org on 2022/11/09 20:18:26 UTC
[helix] branch master updated: add missing default config for TOKEN_EXPIRATION_KEY. (#2265)
This is an automated email from the ASF dual-hosted git repository.
nealsun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/helix.git
The following commit(s) were added to refs/heads/master by this push:
new 30d9ab32a add missing default config for TOKEN_EXPIRATION_KEY. (#2265)
30d9ab32a is described below
commit 30d9ab32af58822c3ff0f9a40980ec877826d401
Author: helix-bot <11...@users.noreply.github.com>
AuthorDate: Wed Nov 9 12:18:19 2022 -0800
add missing default config for TOKEN_EXPIRATION_KEY. (#2265)
Used to parse the optional helix-front identity token source response.
---
helix-front/package.json | 4 ++--
helix-front/server/config.example.ts | 6 ++++++
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/helix-front/package.json b/helix-front/package.json
index d1b112e3b..450419a91 100644
--- a/helix-front/package.json
+++ b/helix-front/package.json
@@ -1,6 +1,6 @@
{
"name": "helix-front",
- "version": "1.3.1",
+ "version": "1.4.1",
"main": "/dist/server/app.js",
"author": "Vivo Xu <xu...@xuxu.name>",
"contributors": [
@@ -40,7 +40,7 @@
"type:check:watch": "yarn type:check -- --watch",
"format:check": "npx prettier --check .",
"format": "yarn prettier --write .",
- "prepack": "yarn build",
+ "prepack": "yarn copy:config && yarn build",
"copy:config": "cp server/config.example.ts server/config.ts",
"check:config": "test -f server/config.ts || yarn copy:config"
},
diff --git a/helix-front/server/config.example.ts b/helix-front/server/config.example.ts
index f069dc4b2..3e58ab82a 100644
--- a/helix-front/server/config.example.ts
+++ b/helix-front/server/config.example.ts
@@ -42,3 +42,9 @@ export const CUSTOM_IDENTITY_TOKEN_REQUEST_BODY: any = {};
* sent by your Identity Token API.
*/
export const TOKEN_RESPONSE_KEY: string = 'token';
+
+/**
+ * This is the key that helix-front uses
+ * to access the token expiration datetime
+ */
+export const TOKEN_EXPIRATION_KEY: string = 'expires';