Yes, the routes have changed in v4 and you need /api in front of it, e.g., http://localhost:1337/api/connect/github
Also note that the redirect url in your Github application configuration (or other provider) needs to have /api in it, e.g., it should be http://localhost:1337/api/connect/github/callback instead of http://localhost:1337/connect/github/callback
In v4, I’ve got the Github login flow to work as far as getting the access token back, but the call to the callback URL returns “401 Unauthorized” - not sure why as I’ve verified that the access token is working to get my info from Github, and given the “public” role access to the “callback” action in users-permissions. If you get any further, let me know how you resolved it.