NextJS JWT and Session Protected API Route

At the moment in my nextJS API Routes I use session based authentication which works nicely in direct combination with my components and in the browser. But I designed the API in a way that it should also be usable by other clients. Is it possible to reuse these APIs in a way where I use the token provided by getAccessToken(req, res); in the header to authenticate all requests?