Skip to content

Commit d0a6267

Browse files
bhavanakarwadeshitrerohit
authored andcommitted
fix: session id decoding issue
Signed-off-by: bhavanakarwade <[email protected]>
1 parent 084a268 commit d0a6267

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/user/src/user.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,8 @@ export class UserService {
531531

532532
async getSession(sessionId: string): Promise<ISessionDetails> {
533533
try {
534-
const decodedSessionId = decodeURIComponent(sessionId);
534+
const onceDecoded = decodeURIComponent(sessionId);
535+
const decodedSessionId = decodeURIComponent(onceDecoded);
535536
const decryptedSessionId = await this.commonService.decryptPassword(decodedSessionId);
536537
const sessionDetails = await this.userRepository.getSession(decryptedSessionId);
537538
return sessionDetails;

0 commit comments

Comments
 (0)