We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 287b4e0 commit 583eaf3Copy full SHA for 583eaf3
src/infra/authorization/authorization.service.ts
@@ -49,13 +49,13 @@ export class AuthorizationService {
49
}
50
51
private getToken(req: HttpRequest): string {
52
- const jwtToken = this.getCookie(req, 'jwt');
+ const token = this.getCookie(req, 'jwt');
53
54
- if (!jwtToken) {
+ if (!token) {
55
throw new Error('JWT not found');
56
57
58
- return jwtToken;
+ return token;
59
60
61
private async fetchAuthorization(room: string, token: string): Promise<ResponsePayload> {
0 commit comments