```javascript const signInWithDiscord = async () =...
# help
u
Copy code
javascript
const signInWithDiscord = async () => {
    const { user, session, error } = await supabase.auth.signIn({
      provider: "discord",
    });
    console.log(user);
};
Here, after the user logs in with discord, I want to get the user, but when the button is pressed, console.log works directly and the user is null.
s
I don't think this is currently possible from looking at the code because you get redirected to discord then back to your website so the user object is always null when using third party logins.
You can see the code on GitHub and notice that all the returns have user set to null. https://github.com/supabase/gotrue-js/blob/862996337c38876eaefead036871ea10df2e27bd/src/GoTrueClient.ts#L540-L563