Skip to content

Commit f422c60

Browse files
committed
test: fix jwt expiry and sub claim tests
1 parent 521ba86 commit f422c60

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/src/services/jwt_auth_token_service_test.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ void main() {
142142
);
143143
final expiredToken = expiredJwt.sign(
144144
SecretKey(
145-
'your-very-hardcoded-super-secret-key-replace-this-in-prod',),
145+
'your-very-hardcoded-super-secret-key-replace-this-in-prod',
146+
),
146147
algorithm: JWTAlgorithm.HS256,
147148
);
148149

@@ -190,7 +191,8 @@ void main() {
190191
final noSubToken = jwt.sign(
191192
// Sign with the *correct* key for this test, as we're testing claim validation
192193
SecretKey(
193-
'your-very-hardcoded-super-secret-key-replace-this-in-prod',),
194+
'your-very-hardcoded-super-secret-key-replace-this-in-prod',
195+
),
194196
expiresIn: const Duration(minutes: 5),
195197
);
196198

0 commit comments

Comments
 (0)