Removed useless await from getPNIDByBearerAuth

This commit is contained in:
Jonathan Barrow
2023-04-28 16:18:47 -04:00
parent d46a9413b4
commit c0e4395b80

View File

@@ -104,7 +104,7 @@ export async function getPNIDByBearerAuth(token: string): Promise<HydratedPNIDDo
verifyConnected();
try {
const decryptedToken: Buffer = await decryptToken(Buffer.from(token, 'hex'));
const decryptedToken: Buffer = decryptToken(Buffer.from(token, 'hex'));
const unpackedToken: Token = unpackToken(decryptedToken);
const pnid: HydratedPNIDDocument | null = await getPNIDByPID(unpackedToken.pid);