nextjs-basic-auth icon indicating copy to clipboard operation
nextjs-basic-auth copied to clipboard

add return promise function checkBasicAuth

Open JaosnHsieh opened this issue 3 years ago • 0 comments

Thank you for the nice repo!

Add return promise so the below await would really work.

// some-route.js export async function getServerSideProps(ctx) { const {req, res} = ctx

await basicAuthCheck(req, res)

return { props: {} } }

JaosnHsieh avatar Sep 06 '22 02:09 JaosnHsieh