diff --git a/README.md b/README.md index 38d2305..caea553 100644 --- a/README.md +++ b/README.md @@ -341,7 +341,7 @@ over remote distribution via Redis. ### Authentication & Authorization -Authentication works best via [AppRouter](https://www.npmjs.com/package/@sap/approuter) (e.g. using a UAA configuration), +Authentication works best via [AppRouter](https://www.npmjs.com/package/@sap/approuter) (e.g. using a UAA configuration), as the auth token is forwarded via authorization header bearer token by AppRouter to backend websocket call. CDS auth strategy (e.g. `cds.auth.kind: 'xsuaa'`) is applied and CDS auth middleware processes the auth token and diff --git a/src/redis/index.js b/src/redis/index.js index 3e6c789..eec876a 100644 --- a/src/redis/index.js +++ b/src/redis/index.js @@ -61,7 +61,7 @@ const createClientBase = (options = {}) => { tls: !!credentials.tls, port: credentials.port, ...requiresRedis?.options?.socket, - ...options?.config.socket, + ...options?.config?.socket, }; const redisOptions = { ...requiresRedis?.options,