This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: replace atob with Buffer.from for base64 decoding in Node.js

Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <aider@aider.chat>

+2 -2
+1 -1
src/modules/user/application/use-cases/RefreshAccessTokenUseCase.ts
··· 58 58 // Extract user ID from the new access token for logging 59 59 try { 60 60 const payload = JSON.parse( 61 - atob(tokenResult.value.accessToken.split('.')[1]), 61 + Buffer.from(tokenResult.value.accessToken.split('.')[1], 'base64').toString(), 62 62 ); 63 63 const userId = payload.sub || payload.did || 'unknown'; 64 64 console.log(
+1 -1
src/webapp/services/auth/CookieAuthService.server.ts
··· 25 25 if (!token) return true; 26 26 27 27 try { 28 - const payload = JSON.parse(atob(token.split('.')[1])); 28 + const payload = JSON.parse(Buffer.from(token.split('.')[1], 'base64').toString()); 29 29 const userDid = payload.did || 'unknown'; 30 30 const expiry = payload.exp * 1000; 31 31 const bufferTime = bufferMinutes * 60 * 1000;