Skip to content

Commit 583eaf3

Browse files
committed
Rename var
1 parent 287b4e0 commit 583eaf3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/infra/authorization/authorization.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ export class AuthorizationService {
4949
}
5050

5151
private getToken(req: HttpRequest): string {
52-
const jwtToken = this.getCookie(req, 'jwt');
52+
const token = this.getCookie(req, 'jwt');
5353

54-
if (!jwtToken) {
54+
if (!token) {
5555
throw new Error('JWT not found');
5656
}
5757

58-
return jwtToken;
58+
return token;
5959
}
6060

6161
private async fetchAuthorization(room: string, token: string): Promise<ResponsePayload> {

0 commit comments

Comments
 (0)