Don't trim

This commit is contained in:
Henry Hiles 2025-06-22 14:50:24 -04:00
commit fb298c9880
No known key found for this signature in database

View file

@ -117,9 +117,7 @@ class ApiHelper {
final token = jwt.sign(
SecretKey(
(await File.fromUri(
Uri.file(settings.jwtSecretFile),
).readAsString()).trim(),
(await File.fromUri(Uri.file(settings.jwtSecretFile)).readAsString()),
),
algorithm: JWTAlgorithm.HS256,
);
@ -148,7 +146,7 @@ class ApiHelper {
SecretKey(
(await File.fromUri(
Uri.file(ref.read(SettingsController.provider)!.jwtSecretFile),
).readAsString()).trim(),
).readAsString()),
),
);
return Response.ok(