JWT error when calling secure api electron and flask

Hi, I’m adding Auth0 to my electron app and until now it worked very well, thanks to the amazing guide on how to add Auth0 to electron (Build and Secure an Electron App - OpenID, OAuth, Node.js, and Express)! However, I’m also trying to secure my flask api, it seems to be working good but when I fetch my api and give it the header: Bearer ${authService.getAccessToken(). It gives me an error as response: “Invalid header. Use an RS256 signed JWT Access Token”. Does anyone know what I’m doing wrong here? Thanks for the help!
Ps. when I console.log this AccesToken, it seems like a JWT token