Don't trim
This commit is contained in:
parent
32ec721e23
commit
fb298c9880
1 changed files with 2 additions and 4 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue