onlook icon indicating copy to clipboard operation
onlook copied to clipboard

Not able to login using Github/Google signin

Open abhayrsr opened this issue 1 year ago • 3 comments

Describe the Problem

I am trying to build and run Onlook from the source. After running the command bun dev, I am redirected to the signup window (GitHub/Google authentication options).

However, when I click on either signup option, I encounter the error shown in the screenshot below. I am unsure how to resolve this issue and proceed with running the code successfully on my system.

Steps Taken

  1. Cloned the repository locally.
  2. Installed dependencies using bun install.
  3. Ran the development server with bun dev.
  4. Followed the redirection to the signup window, as expected.
  5. Encountered the error when selecting a signup option.

Screenshots

Signup Window

Image

Error Message

Image

Questions

  1. Are there additional steps or configurations needed to set up the backend (e.g., environment variables, database setup)?
  2. Do I need to configure Supabase or another service to handle authentication locally? If so, could you provide guidance on the setup?
  3. Is there a mock or development mode that allows me to bypass the authentication temporarily for local testing?

abhayrsr avatar Jan 27 '25 17:01 abhayrsr

@abhayrsr supabase key is not available when you run the app using bun dev, it actually shows in the terminal as a supabase error. You could try using your own key.

But I think the best way to wrap around this would be to just install Onlook from the installer, login from it and close the app and then bun run dev the source code from GitHub to run the dev app, should work.

@Kitenite am I right?

abhiroopc84 avatar Jan 27 '25 18:01 abhiroopc84

Also, just a suggestion, you could just ask such queries in the Onlook discord server so someone can help you faster.

abhiroopc84 avatar Jan 27 '25 18:01 abhiroopc84

@abhayrsr , for building from source you can comment out your supabase tokens to run it in offline mode. This won't ask you to auth but won't have AI access. Alternatively, you can set up a Github App and set that up with Supabase

Kitenite avatar Jan 27 '25 19:01 Kitenite

same problem for me, blocked on authentification interface

Image

aniszr avatar Apr 24 '25 08:04 aniszr

You should activate providers github and google in your supabase account first to get client IDs ans Client Secret

aniszr avatar Apr 25 '25 13:04 aniszr