This commit is contained in:
Henry Hiles 2025-07-25 12:24:38 -04:00
commit 864fcad631
No known key found for this signature in database

View file

@ -120,14 +120,13 @@ class ApiHelper {
final user = codes[code]!;
ref.read(AuthCodeController.provider.notifier).remove(code);
final name = user.userId.getName();
final jwt = JWT(
{
"exp":
DateTime.now().add(Duration(days: 7)).millisecondsSinceEpoch ~/
1000,
"name": name,
"name": user.userId.getName(),
"nonce": user.nonce,
"iat": DateTime.now().millisecondsSinceEpoch ~/ 1000,
},
@ -203,12 +202,10 @@ class ApiHelper {
),
);
final name = jwt.subject!.getName();
return Response.ok(
json.encode({
"active": true,
"name": name,
"name": jwt.subject!.getName(),
}),
headers: {"content-type": "application/json"},
);