coryhouse / react-auth0-final

The final app used to record the course
15 stars 13 forks source link

Error: domain option is required #6

Closed trickyj closed 4 years ago

trickyj commented 4 years ago

I am following the course Securing React Apps with Auth0 and I am stuck at topic 5, Create Login. As soon as I type this in my app.js I am getting this error: Domain option is required.


In App.js


import Auth from "./Auth/Auth";

this.auth = new Auth(this.props.hisotry);

I have uploaded my code on Github

https://github.com/trickyj/react_auth0_app_1.git


Attached below - Screenshot and error.txt file.


Screenshot 2020-07-21 at 11 30 17 AM
Screenshot 2020-07-18 at 2 36 46 AM

Error_auth0.txt

coryhouse commented 4 years ago

The login screen isn't implemented in master on your repo so I can't reproduce your issue. It just loads the app with links to home and profile. I assume you need to push your latest changes?

trickyj commented 4 years ago

Hi Cory,

Thank you for looking into this. Yesterday I have updated the repo. Please double check. As mentioned above, as soon as I type this line in App.js file the issue persists.

this.auth = new Auth(this.props.hisotry);

https://github.com/trickyj/react_auth0_app_1/blob/master/src/App.js

Screenshot 2020-07-22 at 2 06 19 PM
coryhouse commented 4 years ago

You have a typo on that line. Compare to the course.

On Wed, Jul 22, 2020 at 3:37 AM StarMan notifications@github.com wrote:

Hi Cory,

Thank you for looking into this. Yesterday I have updated the repo. Please double check. As mentioned above, as soon as I type this line in App.js file the issue persists.

this.auth = new Auth(this.props.hisotry);

https://github.com/trickyj/react_auth0_app_1/blob/master/src/App.js

[image: Screenshot 2020-07-22 at 2 06 19 PM] https://user-images.githubusercontent.com/1593602/88154517-9c379a00-cc24-11ea-89e6-30a208be3e0b.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/coryhouse/react-auth0-final/issues/6#issuecomment-662323545, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAM4LJP2XSI476IKKUKTAGDR42QMPANCNFSM4PDI366Q .

-- Cory House Principal: reactjsconsulting.com https://www.reactjsconsulting.com Author: Pluralsight Courses http://www.pluralsight.com/author/cory-house

trickyj commented 4 years ago

Hi Cory,

Thank you I double-checked wasn't able to find any typo. It somehow started working after an automatic update called reboot of my mac. and now I am able to see the auth login page. I am sorry to disturb you with all these minor issues. I will make sure to double-check all these before posting the query.

Thank you regards,

Vicky J

Screenshot 2020-07-23 at 10 16 04 AM Screenshot 2020-07-23 at 10 16 09 AM
trickyj commented 4 years ago

Sorry after closing this I noticed the typo :o hisotry and history strangely my code worked with typo as well :o