A little lost with getSession

using next js / react and auth0/nextjs-auth0

const session = getSession(req, res);

const sid: string = session?.user.sub

if (!session) {
    res.status(401).json({ message: "You must be logged in." });

if (req.method === 'GET') {

    const user: dbuser | undefined = await getUser(sid);
    const name: string = session?.user.name ?? ''
    const firstname = session?.user.given_name
    const lastname = session?.user.family_name

from version 1.9.2 this breaks as user is not available.

how do i now get these user properties server and through next.js


Hey there!

In order to handle that most effectively can I ask you to raise a GitHub issue for that in the repo so we can work on that directly with the repo maintainers? Once you have a link to it make sure to share it here so we can ping them. Thank you!