onlook icon indicating copy to clipboard operation
onlook copied to clipboard

[Help] Can't login correctly-redirected to Onlook after authentication

Open freshlesh3 opened this issue 7 months ago • 2 comments

After setting up the self hosted web client, I login using my credentials, which seem to work successfully but I am redirected to the Onlook site not the application. This happens for both Google and Github. There is a persistent console error:

AuthSessionMissingError: Auth session missing!

Hide 4 ignore-listed frame(s) .next\static\chunks\node_modules_@supabase_auth-js_dist_module_33324aae..js (2499:32) SupabaseAuthClient.useSession .next\static\chunks\node_modules@supabase_auth-js_dist_module_33324aae..js (2379:26) async SupabaseAuthClient.getUser .next\static\chunks\node_modules@supabase_auth-js_dist_module_33324aae..js (2487:20) async .next\static\chunks\node_modules@supabase_auth-js_dist_module_33324aae._.js (2474:20)

freshlesh3 avatar Jun 08 '25 11:06 freshlesh3

Hey @freshlesh3 google and github signin works fine

It's happening with you because supabase handles o auth auth differently

so you have to enable google and github on supabase dashboard

go to your supabase project , then go to the left panel there you will find authentication

there under configuration you will see signin/providers go there and find google and github enable them by adding client id and client secret , you will find the authorised redirect url there , you have to add that on you credentials settings on google o auth dashboard

and have to also set the authorised javascript origin as the base supabase url

Image

@Kitenite @drfarrell I think this is not an issue as i find out why it was happening . so kindly close this issue

Thanks

any idea how to fix this? with the local supabase on docker, these authentication provider options are not available...

wala0003 avatar Jun 14 '25 14:06 wala0003