From e695dff0c09da6c772e0abdfe501701df873b99f Mon Sep 17 00:00:00 2001 From: lifegpc Date: Mon, 28 Aug 2023 23:03:50 +0800 Subject: [PATCH] Update --- lib/api/client.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/api/client.dart b/lib/api/client.dart index 2306e6e..08da5f3 100644 --- a/lib/api/client.dart +++ b/lib/api/client.dart @@ -42,9 +42,9 @@ abstract class EHApi { @PUT('/token') Future> _createToken( - {@Query("username") String username, - @Query("password") String password, - @Query("t") int t, + {@Query("username") required String username, + @Query("password") required String password, + @Query("t") required int t, @Query("set_cookie") bool? setCookie, @Query("http_only") bool? httpOnly, @Query("secure") bool? secure});