Auth tokens back to simple strings as private key used for token refresh which not doing

This commit is contained in:
simojenki
2021-02-26 12:36:43 +11:00
parent 57cecad469
commit 0cb02707f1
5 changed files with 9 additions and 10 deletions

View File

@@ -175,7 +175,7 @@ describe("api", () => {
describe("when there is a linkCode association", () => {
it("should return a device auth token", async () => {
const linkCode = linkCodes.mint();
const association = { authToken: { value: "at", version: "66" }, userId: "uid", nickname: "nn" };
const association = { authToken: "at", userId: "uid", nickname: "nn" };
linkCodes.associate(linkCode, association);
const ws = await createClientAsync(`${service.uri}?wsdl`, {
@@ -187,8 +187,8 @@ describe("api", () => {
expect(result[0]).toEqual({
getDeviceAuthTokenResult: {
authToken: association.authToken.value,
privateKey: association.authToken.version,
authToken: association.authToken,
privateKey: "",
userInfo: {
nickname: association.nickname,
userIdHashCode: crypto