diff --git a/lib/helpers/api_helper.dart b/lib/helpers/api_helper.dart index 9c2564e..78bf0d9 100644 --- a/lib/helpers/api_helper.dart +++ b/lib/helpers/api_helper.dart @@ -99,14 +99,15 @@ class ApiHelper { final user = codes[code]!; ref.read(AuthCodeController.provider.notifier).remove(code); + final name = user.userId.split(':').first.replaceFirst('@', ''); final jwt = JWT( { "exp": DateTime.now().add(Duration(days: 7)).millisecondsSinceEpoch ~/ 1000, - "email": - "${user.userId.split(':').first.replaceFirst('@', '')}@federated.nexus", + "email": "$name@federated.nexus", + "name": name, "iat": DateTime.now().millisecondsSinceEpoch ~/ 1000, }, subject: user.userId,