How to customize Providers.js?

Hello, i need to make changes in Providers.js file.

I got this file from node_modules and placed a copy in extensions/users-permissions/services/Providers.js.

I want to remove ending ‘’ from login form url:

After removing i still get redirect with ‘’ at the end of my host url, looks like function ‘getProfile’ is not called.

I put console.log(‘Hello from Providers.js’) at the very top of this file and i get ‘Hello from Providers.js’. console.log inside functions is not working.

System Information
  • Strapi Version: 3.6.1
  • Operating System: MacOS
  • Database: sqlite
  • Node Version: 14.7.3
  • NPM Version: 6.14.13
  • Yarn Version: 1.22.11

UPDATE: i explored that when i pass url ‘http://localhost:1337/connect/auth0’ it calls function ‘connect’ in users-permissions/controllers/Auth.js. And this function calls ‘grant’ function where redirect executes. And i’m at this point now.

I think i got it. Module ‘grant’, folder config, files ‘oauth.json’ and ‘profile.json’.