From 4cfea562784868b36a25c2d90decee747fe5fe1e Mon Sep 17 00:00:00 2001 From: Alexandr Glagolev <38671810+Deltenman@users.noreply.github.com> Date: Thu, 28 Sep 2023 04:25:52 +0300 Subject: [PATCH] feat: change refreshToken()'s grant_type to "refresh_token" (#31) Co-authored-by: a.glagolev --- lib/casdoor.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/casdoor.dart b/lib/casdoor.dart index 6c10884..c8331fd 100644 --- a/lib/casdoor.dart +++ b/lib/casdoor.dart @@ -117,7 +117,7 @@ class Casdoor { path: "api/login/oauth/refresh_token", ), body: { - 'grant_type': 'authorization_code', + 'grant_type': 'refresh_token', 'refresh_token': refreshToken, 'scope': scope, 'client_id': config.clientId,