> For example, Stack Auth is pretty closely aligned to the Next.js ecosystem
Please for the love of god don't get sucked into the trap of building front end code for frameworks. Make it work with a 5 line static HTML file and a <script> tag, then build wrappers if you think they make sense.