@dt-esa/authorizer
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -1,2 +0,2 @@ | ||
import { SharedSessionStore } from "@dt-esa/level-cluster"; | ||
import { SessionStoreOptions, SharedSessionStore } from "@dt-esa/level-cluster"; | ||
import { AxiosInstance } from "axios"; | ||
@@ -85,2 +85,2 @@ import { ConfigParams } from "express-openid-connect"; | ||
*/ | ||
export declare const SharedUserCache: (port: any, options: any) => SharedSessionStore<unknown>; | ||
export declare const SharedUserCache: (port: any, options?: SessionStoreOptions) => SharedSessionStore<unknown>; |
@@ -114,3 +114,4 @@ "use strict"; | ||
status: 401, | ||
message: 'Authorization could not be established.', | ||
message: 'Authorization could not be established. Are you logged in?', | ||
body: 'Check your authorizations.json file and make sure you are logged in.' | ||
}); | ||
@@ -170,3 +171,3 @@ }); | ||
*/ | ||
const SharedUserCache = (port, options) => { | ||
const SharedUserCache = (port, options = {}) => { | ||
// We will always use the authorizer cache id. This will prevent collisions with other | ||
@@ -173,0 +174,0 @@ // packages that need to use a cache. |
{ | ||
"name": "@dt-esa/authorizer", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
33237
662