@thinkingcat/auth-utils 1.0.29 → 1.0.30

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 +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -652,10 +652,12 @@ async function verifyAndRefreshToken(req, secret, options) {
652
652
  // 토큰 검증 실패
653
653
  }
654
654
  debugLog('verifyAndRefreshToken', 'Creating auth response...');
655
+ // 현재 경로로 리다이렉트하여 새로운 쿠키로 다시 요청하도록 함
656
+ const currentPath = req.nextUrl.pathname + req.nextUrl.search;
655
657
  const response = await createAuthResponse(refreshResult.accessToken, secret, {
656
658
  req,
657
659
  refreshToken: newRefreshToken,
658
- redirectPath: '',
660
+ redirectPath: currentPath,
659
661
  text: text || serviceId,
660
662
  cookiePrefix,
661
663
  isProduction,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkingcat/auth-utils",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
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",