We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab8e1ce commit 92b186dCopy full SHA for 92b186d
.changeset/tidy-cows-hang.md
@@ -0,0 +1,5 @@
1
+---
2
+"@labdigital/federated-token-react": patch
3
4
+
5
+Use cookieNames from options when setting up auth provider
packages/react/src/provider.tsx
@@ -110,7 +110,10 @@ export function AuthProvider({
110
loading: true,
111
});
112
113
- const cookieNames = DEFAULT_COOKIE_NAMES;
+ const cookieNames = {
114
+ ...DEFAULT_COOKIE_NAMES,
115
+ ...options.cookieNames,
116
+ };
117
118
const updateAuthState = useCallback((token?: TokenData) => {
119
if (token?.isAuthenticated) {
0 commit comments