As you might know, there is no official next.js authentication example yet. It’s on the way, but the relevant issue has been open for about 5 months now, and a pull request has been put on hold. Meanwhile, many people have come forth with their own boilerplates and examples, yet the whole issue is quite tricky. The reason behind this is that next.js provides server-side-rendering and code splittin