Skip to content

Commit

Permalink
Merge pull request #358 from boostcampwm-2024/Fix/351
Browse files Browse the repository at this point in the history
🐛 [Fix]: 토큰 없어도 채팅방 입장 가능하게 수정
  • Loading branch information
seungheon123 authored Dec 3, 2024
2 parents 6fa3905 + 34cfe3c commit dd91dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/chat/src/chat/chat.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class ChatService {

async joinRoom(roomId: string, client: Socket) {
let member: { camperId: string; name: string } | null = null;
const token = client.handshake.headers.authorization?.split(' ')[1];
const token = client.handshake.auth.accessToken?.split(' ')[1];
if (token) {
const response = await this.memberService.getMemberInfo(token);
member = response.data;
Expand Down

0 comments on commit dd91dab

Please sign in to comment.