Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useSignIn() with Google OAuth creates account but hook does not work #37

Open
ctjlewis opened this issue Dec 30, 2021 · 2 comments
Open

Comments

@ctjlewis
Copy link

ctjlewis commented Dec 30, 2021

Bug report

The useSignIn() hook does not work correctly.

Description / Observed Behavior

Try to use the sign-in hook, and successfully log in (the user is created in the Supabase console), but when I'm redirected, the new session is not loaded by the hook, despite that being the core functionality:

const [{ error, fetching, session, user }, signIn] = useSignIn();
console.log({ user, session });
// { user: undefined, session: undefined }

Expected Behavior

After signing in, the hook should return the user and session data.

const [{ error, fetching, session, user }, signIn] = useSignIn();
console.log({ user, session });
// something other than all undefined

Repro Steps / Code Example

Included.

Additional Context

Latest version. Basic sign-in. No idea why this would not work out of the box.

@a4amado
Copy link

a4amado commented Feb 8, 2024

someone check on the maintainer he might be dead

@jxom
Copy link

jxom commented Feb 9, 2024

He's alive and well – we were just returning some video tapes earlier today. Turns out his '80s obsession was not only limited to fashion, but also to his movie rental habits. He even tried to 'rewind' the DVDs out of habit! Good thing we clarified that VCRs are extinct!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants