Remove await
This commit is contained in:
parent
4fdf5e9674
commit
1e0dd8feea
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -9,7 +9,7 @@ export const getStaticProps: GetStaticProps = async () => {
|
||||
const metadata: IdPMetadata = {
|
||||
ssoUrl: config.ssoUrl,
|
||||
entityId: config.entityId,
|
||||
certificate: await fetchPublicKey(),
|
||||
certificate: fetchPublicKey(),
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user