stuck-chocolate
stuck-chocolate•2y ago

Auth Azure B2C with Next.js

I am trying to implement authentication with azure B2C with next, however in the doc there are some settings made in index.tsx, since next does not have the file index.tsx I tried to create it but it broke the application, what can I do to get around it?
2 Replies
refine-support-bot
refine-support-bot•2y ago
Hey, I am refine support bot :wave:. I am here to help you with your question. I searched for the answer to your question in the refine documentation and could not find an answer. Please wait for someone from the refine core team or the community to try to help you. 👊
xenophobic-harlequin
xenophobic-harlequin•2y ago
u can use _document.tsx https://nextjs.org/docs/advanced-features/custom-document Or you can use _app.tsx and wrap your <Refine> component with <MsalProvider?>
Advanced Features: Custom Document | Next.js
Extend the default document markup added by Next.js.