Remove await

This commit is contained in:
Aswin V 2022-03-01 00:44:19 +05:30
parent 4fdf5e9674
commit 1e0dd8feea
3 changed files with 4 additions and 4 deletions

View File

@ -34,8 +34,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
user: user,
});
const signingKey = await fetchPrivateKey();
const publicKey = await fetchPublicKey();
const signingKey = fetchPrivateKey();
const publicKey = fetchPublicKey();
const xmlSigned = await signResponseXML(xml, signingKey, publicKey);
const encodedSamlResponse = Buffer.from(xmlSigned).toString('base64');

View File

@ -20,7 +20,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
const xml = await createIdPMetadataXML({
idpEntityId: config.entityId,
idpSsoUrl: config.ssoUrl,
certificate: await fetchPublicKey(),
certificate: fetchPublicKey(),
});
res.setHeader('Content-type', 'text/xml');

View File

@ -9,7 +9,7 @@ export const getStaticProps: GetStaticProps = async () => {
const metadata: IdPMetadata = {
ssoUrl: config.ssoUrl,
entityId: config.entityId,
certificate: await fetchPublicKey(),
certificate: fetchPublicKey(),
};
return {