@thinkingcat/auth-utils 1.0.42 → 1.0.43

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/dist/index.js +6 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1549,8 +1549,14 @@ async function handleMiddleware(req, config, options) {
1549
1549
  // 2. 루트 경로 처리 - SSO 토큰 처리 (인증 체크보다 먼저!)
1550
1550
  if (pathname === '/') {
1551
1551
  const tokenParam = req.nextUrl.searchParams.get('token');
1552
+ console.log('[handleMiddleware] Root path check:', {
1553
+ pathname,
1554
+ hasTokenParam: !!tokenParam,
1555
+ tokenLength: tokenParam?.length || 0,
1556
+ });
1552
1557
  if (tokenParam) {
1553
1558
  debugLog('handleMiddleware', 'Processing SSO token from query parameter');
1559
+ console.log('[handleMiddleware] Processing SSO token from query parameter');
1554
1560
  try {
1555
1561
  // 1. 토큰 검증
1556
1562
  const tokenResult = await verifyToken(tokenParam, secret);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkingcat/auth-utils",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
4
4
  "description": "Authentication utilities for ThinkingCat SSO services with conditional logging",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",