skip to Main Content

Can I check with oauth2 if the user has a verified email or telephone on the discord account?

I need this because I want to create a verification (ticket bot)
Please do not reply in a way that "you have this option in the server settings".

Information:
discord.js v14
javascript
node.js

I tried to search on the internet (I’m Polish so it’s hard to search using the translator).

3

Answers


  1. I do not think there is a way to know if the user has a verified phone number or email via oAuth.

    That being said, there is a setting to only allow people in the server that have a verified phone number/email.

    Login or Signup to reply.
  2. There’s an email scope for Discord’s OAuth2 but not a phone number scope. Here’s the documentation.

    If the user has a verified email, that will be sent to your application during the callback. If the email field isn’t there, you can assume the user doesn’t have a verified email.

    Login or Signup to reply.
  3. Unlucky, there is no option to verify that via OAuth2, you have to verify provider by yourself, and decide if you trust it or not. Discord is one of the providers. Discord is one of the providers that do not require confirmation of the e-mail address by the user.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search