@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.
- package/core.js +8 -0
- 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.');
|