dotneet / smart-chatbot-ui

An open source ChatGPT UI.
https://smart-chatbot-ui.vercel.app/
MIT License
470 stars 99 forks source link

front end is not running properly. #55

Open nihalgurjar47 opened 1 year ago

nihalgurjar47 commented 1 year ago

My front end ui is not open properly.check below screenshot. Screenshot from 2023-05-09 16-50-14 and i am getting this error ,check in below screenshot. MicrosoftTeams-image (7) MicrosoftTeams-image (8)

dotneet commented 1 year ago

Can you tell me more about your environment?

nihalgurjar47 commented 1 year ago
  1. My OS is Ubuntu and i am using browser chrome,mozila.
  2. Node.js version is v16.19.1
  3. Network tab's detail see in below screen shot. Screenshot from 2023-05-10 10-02-47
nihalgurjar47 commented 1 year ago

@dotneet I want to just know how can create multiple user. My requirement is only that one user can't access another user's chat history, this features are available in this project or not?

If this features are available on this project kindly give me brief and how to create multiple user.

Question-> User management is control in our hand or not?

Feature Request I want to user management functionality,means if user exist in database than user can use smart-chatbot-ui and if user does't exist in database than user can't use smart-chatbot-ui.

johnbrownlow commented 1 year ago

The problem here is that the Google OAuth credentials are not set up properly. Go here:

https://support.google.com/cloud/answer/6158849?hl=en

You will need to add an email as a test user which should match the one you log in with

The client ID should look like this Screenshot 2023-05-11 at 4 01 16 PM :

jmery24 commented 1 year ago

Hi, how are you ? i have problem with login oauth Google. infinite loop, Login OK, but redirect to login, OK, etc etc In app console google have same data from print screen...

johnbrownlow commented 1 year ago

Did you also add a test user in the OAuth consent screen? This should match the email address you are trying to log in with. You also need to edit the regex in the .env.local file.

Screenshot 2023-05-11 at 8 51 33 PM
jmery24 commented 1 year ago

Hello, thank you for responding. If I already have my email enabled with which I log in as well as the image you shared. I attach screenshots of how I have everything. Thank you for your help.

Captura de pantalla 2023-05-12 112729

Captura de pantalla 2023-05-12 112903

Captura de pantalla 2023-05-12 113022

johnbrownlow commented 1 year ago

Hi, the NEXTAUTH_EMAIL_PATTERN needs to be a regex that matches the email address or addresses you will use. If you are only using one email address you can just use that. Otherwise you will have to figure out a regex that works!

For example mine just matches my email.

The way it works is that the app doesn't know what email you have used until it gets the callback from google, which shares your email. If the email doesn't match the regex, then the login attempt is rejected.

Screenshot 2023-05-12 at 11 04 34 AM