# 30 day challenge error :: Could not complete OAuth 2.0 login. Getting Error: \[object Object\]

**URL:** <https://community.postman.com/t/30-day-challenge-error-could-not-complete-oauth-2-0-login-getting-error-object-object/23658>\
**Category:** Help Hub\
**Tags:** newman-project, authentication\
**Created:** [May 12, 2021, 3:30am UTC](https://community.postman.com/t/30-day-challenge-error-could-not-complete-oauth-2-0-login-getting-error-object-object/23658 "2021-05-12T03:30:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RajatSharan2505](https://avatars.discourse-cdn.com/v4/letter/r/ccd318/32.png) [@RajatSharan2505](https://community.postman.com/u/RajatSharan2505)\
**Post date:** [May 12, 2021, 3:30am UTC](https://community.postman.com/t/30-day-challenge-error-could-not-complete-oauth-2-0-login-getting-error-object-object/23658/1 "2021-05-12T03:30:30Z")

</div>

**Describe the bug**  
After setting the data and clicking on “Request Token” Postman shows an error message “Could not complete OAuth 2.0 login. Check Postman Console for more details.”

To Reproduce  
Steps to reproduce the behavior:

- Go to Authorization on a request
- Select type OAuth 2.0
- Click “Get New Access Token”
- Fill in requested information
- Click on Request Token
- See error

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/3/6/362ec0e3ef5692849202dca8bbfaec00dcf76ac8.png)

Can someone please suggest me how to resolve this issue.

Many Thanks

---

<div class="post-metadata">

**Author:** ![Sergey\_K](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/sergey_k/32/8536_2.png) [@Sergey\_K](https://community.postman.com/u/Sergey_K)\
**Post date:** [May 18, 2021, 8:21am UTC](https://community.postman.com/t/30-day-challenge-error-could-not-complete-oauth-2-0-login-getting-error-object-object/23658/2 "2021-05-18T08:21:14Z")

</div>

Hey @RajatSharan2505 I faced the same problem. I filled in the “Callback URL” field from the app’s GitHub page and after that everything was ok.

---

<div class="post-metadata">

**Author:** ![jecorde](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/jecorde/32/14048_2.png) [@jecorde](https://community.postman.com/u/jecorde)\
**Post date:** [June 27, 2021, 3:43am UTC](https://community.postman.com/t/30-day-challenge-error-could-not-complete-oauth-2-0-login-getting-error-object-object/23658/3 "2021-06-27T03:43:25Z")

</div>

Dear all,  
I was confronted to a similar issue also . **When the authorization tab is selected inside the Oauth folder** , I have the same error `Error: [Object Object]`(I can be generalized to a folder inside a collection). A workaround is to set up the Oauth 2.0 authorization directly in the request which is added to a collection or a folder. _ **For instance, use the same steps in the challenge not on the folder Oauth but directly on the GET github request** _. It works for me !The same outcome is reached.

---

<div class="post-metadata">

**Author:** ![ehpos](https://avatars.discourse-cdn.com/v4/letter/e/779978/32.png) [@ehpos](https://community.postman.com/u/ehpos)\
**Post date:** [June 15, 2022, 11:37am UTC](https://community.postman.com/t/30-day-challenge-error-could-not-complete-oauth-2-0-login-getting-error-object-object/23658/4 "2022-06-15T11:37:17Z")

</div>

I also had this error - and it was “fixed” by switching my Callback URL from [http://localhost:3000](http://localhost:3000) to Postman’s [https://oauth.pstmn.io/v1/callback](https://oauth.pstmn.io/v1/callback) (both are permitted by my Azure AD AppReg. The Error message then switched to “Error: invalid\_resource” ; I was using the wrong resource ID for the environment (oops).
