support refresh tokens (dkt fix) (#113)

This commit is contained in:
El Koulali András 2022-09-18 15:31:01 +02:00 committed by GitHub
parent 53e9aca376
commit d13de96ae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,4 +70,17 @@ class User {
"client_id": KretaAPI.clientId, "client_id": KretaAPI.clientId,
}; };
} }
static Map<String, Object?> refreshBody({
required String refreshToken,
required String instituteCode,
}) {
return {
"refresh_token": refreshToken,
"institute_code": instituteCode,
"client_id": KretaAPI.clientId,
"grant_type": "refresh_token",
"refresh_user_data": "false",
};
}
} }