i have page /user, and api route /api/user.
when user request /user page, server next js in getInitialProps fn send request with current user cookies into server, wait result, and render page with this data, and return html with this data
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).