@britannica/cam-utils
Advanced tools
Comparing version 5.0.0-beta.4 to 5.0.0-beta.5
@@ -99,4 +99,6 @@ 'use strict'; | ||
getAuthConfiguration() { | ||
const poolConfiguration = this.getPoolConfiguration(); | ||
return { | ||
...poolConfigurations[this.environment], | ||
...poolConfiguration, | ||
userPoolWebClientId: poolConfiguration.clientId, | ||
cookieStorage: { | ||
@@ -103,0 +105,0 @@ ...this.cookieOptions, |
@@ -97,4 +97,6 @@ // --- Enums | ||
getAuthConfiguration() { | ||
const poolConfiguration = this.getPoolConfiguration(); | ||
return { | ||
...poolConfigurations[this.environment], | ||
...poolConfiguration, | ||
userPoolWebClientId: poolConfiguration.clientId, | ||
cookieStorage: { | ||
@@ -101,0 +103,0 @@ ...this.cookieOptions, |
@@ -103,4 +103,6 @@ (function (global, factory) { | ||
getAuthConfiguration() { | ||
const poolConfiguration = this.getPoolConfiguration(); | ||
return { | ||
...poolConfigurations[this.environment], | ||
...poolConfiguration, | ||
userPoolWebClientId: poolConfiguration.clientId, | ||
cookieStorage: { | ||
@@ -107,0 +109,0 @@ ...this.cookieOptions, |
@@ -22,3 +22,4 @@ import type { CookieSerializeOptions } from 'cookie'; | ||
}; | ||
export type AuthConfiguration = PoolConfiguration & { | ||
export type AuthConfiguration = Omit<PoolConfiguration, 'clientId'> & { | ||
userPoolWebClientId: PoolConfiguration['clientId']; | ||
cookieStorage?: CookieSerializeOptions; | ||
@@ -25,0 +26,0 @@ }; |
{ | ||
"name": "@britannica/cam-utils", | ||
"version": "5.0.0-beta.4", | ||
"version": "5.0.0-beta.5", | ||
"description": "Consumer Account Management (CAM) auth configuration and utilities", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/britannica/cam-utils.git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
62882
607