Skip to content

Commit 73080d3

Browse files
committed
fix(jwt): fix linting issues in jwt_auth_token
- Fixed trailing comma issue
1 parent 2b12b59 commit 73080d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/services/jwt_auth_token_service.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class JwtAuthTokenService implements AuthTokenService {
101101
if (subClaim is String) {
102102
userId = subClaim;
103103
print(
104-
'[validateToken] "sub" claim successfully cast to String: $userId');
104+
'[validateToken] "sub" claim successfully cast to String: $userId',);
105105
} else if (subClaim != null) {
106106
print(
107107
'[validateToken] WARNING: "sub" claim is not a String. '
@@ -117,7 +117,7 @@ class JwtAuthTokenService implements AuthTokenService {
117117

118118
if (userId == null || userId.isEmpty) {
119119
print(
120-
'[validateToken] Token validation failed: Missing or empty "sub" claim.');
120+
'[validateToken] Token validation failed: Missing or empty "sub" claim.',);
121121
// Throw specific exception for malformed token
122122
throw const BadRequestException(
123123
'Malformed token: Missing or empty subject claim.',

0 commit comments

Comments
 (0)