Skip to content

Version 4.1 auth0.getSession(ctx.req) not return user role #1980

@NguyenCao-Glams

Description

@NguyenCao-Glams

Checklist

Description

In version 2.7, user in session has role, but in version 4.1 don't have.

Image Image

Reproduction

const session = await auth0.getSession(ctx.req)
console.log(session)

Additional context

No response

nextjs-auth0 version

4.1

Next.js version

15.1.7

Node.js version

22.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions