Is it possible to use nextJS and ExpressJs?

I want to understand one thing
Usually in MERN application i was doing authentication and authorised using expressJs Jwt and http only cookie

Suppose if I use nextJs and expreesJs for complex logics how can i validate the api calls at express js server?

Can anyone explain how to do authentication and authorisation outside the nextJs ?
Was this page helpful?