Skip to content

Commit

Permalink
Update token.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpicado committed May 5, 2024
1 parent 460e116 commit 554d784
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/endpoint/api/v1/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ export default function (router: Router, auth: Auth, storage: Storage, config: C
}

try {
const token = await getApiToken(auth, config, user, password);
const key = stringToMD5(token);
const token = await getApiToken(auth, config, user, password) as string;
const key = stringToMD5(token as string);
// TODO: use a utility here
const maskedToken = mask(token, 5);
const maskedToken = mask(token as string, 5);
const created = new Date().getTime();

/**
Expand Down

0 comments on commit 554d784

Please sign in to comment.