Skip to content

Commit

Permalink
Merge pull request #240 from onerain88/tdsuser-jwt
Browse files Browse the repository at this point in the history
feat: support TDSUser jwt
  • Loading branch information
onerain88 authored Feb 20, 2023
2 parents 8f9e7b7 + 2c33f61 commit eae8ce1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Storage/Storage/Public/User/LCUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -851,5 +851,12 @@ public static async Task<ReadOnlyCollection<LCUser>> StrictlyFind(LCUserQueryCon
}
return users.AsReadOnly();
}

public static async Task<string> RetrieveShortToken() {
string path = "storage/1.1/users/tap-support/identity";
Dictionary<string, object> response = await LCCore.HttpClient.Get<Dictionary<string, object>>(path,
withAPIVersion: false);
return response["identityToken"] as string;
}
}
}

0 comments on commit eae8ce1

Please sign in to comment.