This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I'm not sure if this is a bug per se or if I am doing something incorrectly. Normally in the past, I retrieve a token via https://www.reddit.com/api/v1/access_token with a grant_type of "password" and use my app's client_id and client_secret to create the Basic authorization header. Everything works as expected and I receive a token.
However, if I enable 2-Factor authentication for my account, the code that retrieves a token fails with this message:
{'error': 'invalid_grant'}
Should I use a different grant_type if I have 2-Factor authentication enabled on my account? Is there any other change I need to make for token generation to work correctly with MFA?
Thank you!
Subreddit
Post Details
- Posted
- 6 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/redditdev/c...