Skip to content

Session always undefined inside a generic middleware #64

@Paroca72

Description

@Paroca72

I'm trying to understand if a user is authenticated after I login using the default Admin.js login procedure.
I'm not using the admin.js router but just a simple express.js router like:

    app.use('/dashboard', [
        authMiddleware,
        dashboardRouting,
    ]);

But if I asking for Session inside the middleware is always undefined.
Where is a way to understand if I am authenticated in a generic middleware?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions