From 2c33f61d78b2a8147689353d796c16ff89b4a9fe Mon Sep 17 00:00:00 2001 From: leancloud-bot Date: Mon, 20 Feb 2023 10:35:35 +0800 Subject: [PATCH] feat: support TDSUser jwt --- Storage/Storage/Public/User/LCUser.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Storage/Storage/Public/User/LCUser.cs b/Storage/Storage/Public/User/LCUser.cs index b5eee2d1..212fda18 100644 --- a/Storage/Storage/Public/User/LCUser.cs +++ b/Storage/Storage/Public/User/LCUser.cs @@ -851,5 +851,12 @@ public static async Task> StrictlyFind(LCUserQueryCon } return users.AsReadOnly(); } + + public static async Task RetrieveShortToken() { + string path = "storage/1.1/users/tap-support/identity"; + Dictionary response = await LCCore.HttpClient.Get>(path, + withAPIVersion: false); + return response["identityToken"] as string; + } } }