diff --git a/lib/helpers/api_helper.dart b/lib/helpers/api_helper.dart index a353951..9c2564e 100644 --- a/lib/helpers/api_helper.dart +++ b/lib/helpers/api_helper.dart @@ -105,6 +105,8 @@ class ApiHelper { "exp": DateTime.now().add(Duration(days: 7)).millisecondsSinceEpoch ~/ 1000, + "email": + "${user.userId.split(':').first.replaceFirst('@', '')}@federated.nexus", "iat": DateTime.now().millisecondsSinceEpoch ~/ 1000, }, subject: user.userId, diff --git a/pubspec.lock b/pubspec.lock index 52f7e2d..b066feb 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -26,7 +26,7 @@ packages: source: hosted version: "7.4.5" args: - dependency: transitive + dependency: "direct main" description: name: args sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04 diff --git a/pubspec.yaml b/pubspec.yaml index 49701af..8867bc5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -18,6 +18,7 @@ dependencies: shelf_router: ^1.1.4 fast_immutable_collections: ^11.0.4 cli_tools: ^0.6.0 + args: ^2.7.0 dev_dependencies: build_runner: ^2.4.6