gbowne1 / TwitchBot

A MERN full stack TwitchBot
MIT License
7 stars 9 forks source link

[Bug] Home page says Logout no matter what state its in #86

Open gbowne1 opened 3 months ago

gbowne1 commented 3 months ago

Not sure if this is a thing 100% but:

The Login/Logout button stays in the Logout label state whether or not I am logged in or out. Also theres no snackbar, alert, toast, etc to tell the user the state of logged in or logged out status.

Screenshot 2024-03-07 at 14-37-42 TwitchBot

As a side note, am getting

Login failed: 
Object { stack: "AxiosError@http://localhost:3000/static/js/bundle.js:85077:18\nhandleError@http://localhost:3000/static/js/bundle.js:84441:14\n", message: "Network Error", name: "AxiosError", code: "ERR_NETWORK", config: {…}, request: XMLHttpRequest }```

I am using mongod and mongosh with the database 'twitchbot`.

Sky-De commented 3 months ago

@gbowne1 hi again, i was busy for couple of weeks, now i have free time again, please assign this to me, i will take a look and fix it, thanks

gbowne1 commented 3 months ago

Ok @Sky-De

Sky-De commented 3 months ago

@gbowne1 is there any contributor access for the server for these .env :

Backend Port

PORT=

MongoDB URI

MONGO_URI=mongodb://localhost:27017/twitchbot

Twitch Credentials

TWITCH_USERNAME= TWITCH_PASSWORD= TWITCH_CHANNEL=

JWT Secret

SECRET_KEY=

or do I have to create all of these for myself inform me about it thanks

gbowne1 commented 3 months ago

@Sky-De

There is no server, database, etc. so you'll need to create your own using MongoDB Atlas, MongoDB Compass or the cli versions mongod and mongosh for making your own server and database/collections for this.

Thanks

Sky-De commented 3 months ago

@gbowne1 I created everything except Twitch. Unfortunately, I do not have access to Twitch to create : TWITCH_USERNAME= TWITCH_PASSWORD= TWITCH_CHANNEL=

Is it possible for you, as the project owner, to provide a Twitch mock for me and other developers? There are quite a few things that I can improve on your server, such as cleaning up the code and creating a better structure for routes, middleware, controllers, and testing. However, I will require your assistance with Twitch. Please let me know if you can provide it. Otherwise, I regret to inform you that I will have to unassign this issue.

gbowne1 commented 3 months ago

@Sky-De

Actually it is much easier if you can create your own account on Twitch because of how the bot registration process works. Its also not as simple as just providing a testing account.

I also believe that the old justin.tv API endpoint(s) still work for testing so there is that, but that would require more testing. Once the bot is working with the old API endpoints could just plug in the new API endpoints and carry on.

However there is still a lot of work that needs to be done before we get to integration with Twitch that would not specifically require Twitch, like the UI, etc.

I can still unassign you if you like.

@jarmentor

Babuprasanth27 commented 1 week ago

@gbowne1 Hey Greeting, I am interested in fixing this issue.

gbowne1 commented 1 week ago

@Babuprasanth27 you are welcome to work on this issue.

Babuprasanth27 commented 1 week ago

@gbowne1 Thanks