@spidy092/auth-client 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/core.js +8 -0
  2. package/package.json +1 -1
package/core.js CHANGED
@@ -75,6 +75,14 @@ export function handleCallback() {
75
75
  const state = params.get('state');
76
76
  const storedState = localStorage.getItem('authState');
77
77
 
78
+ console.log('Handling authentication callback:', {
79
+ accessToken,
80
+ error,
81
+ state,
82
+ storedState
83
+ });
84
+
85
+
78
86
  // Validate state
79
87
  if (state && storedState && state !== storedState) {
80
88
  throw new Error('Invalid state. Possible CSRF attack.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spidy092/auth-client",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Scalable frontend auth SDK for centralized login using Keycloak + Auth Service.",
5
5
  "main": "index.js",
6
6
  "module": "index.js",