You can access the authorization at your middleware like this :
const authHeader = request.headers.get("authorization"); console.log("Authorization Header:", authHeader);