Github oauth failing

I have successfully integrated google, twitter, and facebook oauth tools with my app. However I am unable to authorize with github. I am getting this error which happens (I believe) after the redirect from the popup back to my site.

{“line”:“405”,“file”:“oauth_server.js”,“message”:“Error in OAuth Server: emails.find is not a function”,“time”:{"$date":1641280410432},“level”:“warn”}
Exception while invoking method ‘login’ TypeError: emails.find is not a function at Object.handleOauthRequest (packages/github-oauth/github_server.js:10:31)
at OAuth._requestHandlers. (packages/oauth2/oauth2_server.js:10:33)
at middleware (packages/oauth/oauth_server.js:170:5)
at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40

These are my versions

============================= .meteor/release ==================

======== Potentially relevant versions listed in .meteor/versions ==========




Anyone have any ideas?

Alright! Took me a while with another provider, can you please check this PR and see if that helps to fix your problem: Add delay in oauth secret retrieval if it fails first time by StorytellerCZ · Pull Request #11865 · meteor/meteor · GitHub

Also you might want to check this one as well: GitHub OAuth allow_signup & more data returned by StorytellerCZ · Pull Request #11724 · meteor/meteor · GitHub

We’re having the same issue on our RocketChat (4.6.1) instance, did you manage to solve it, @natebu?

Hi guys, no sorry I haven’t yet. I tried @storyteller’s ideas but to no avail. I will probably try again in the near future and will post here if I have any success.