Hey guys! Not sure if this is a proposal or an iss...
# ideas-and-suggestions
b
Hey guys! Not sure if this is a proposal or an issue, or something related with a specific auth provider. Description Im working with github auth, and works fine, something simple as:
Copy code
await supabase.auth.signIn({
    provider: "github",
});
Probably you already know that by doing this.. in case a user doesnt exist in supabase, its created, so this signIn works like a singUp when the user doesnt exist, and thats totally fine, I would say I like the approach, but would be possible, to get a response info from
auth.signIn
to know if the user has been created or just logged? would make sense? I know I could check if the user exist before or something else, but I think is something very useful. Maybe its already doing something similar and I was not able to figure out how to get that from the response.
j
I think Firebase does something like this in response. they have an attribute called something like "isNewUser" in the response, which is probably useful so the client app can act accordingly. Not sure if we have anything like that in supabase-js. cc @User
oh yea, in firebase its res.additionalUserInfo.isNewUser
b
I didn’t firebase does something similar
Btw I was checking the code and I was not able to find something similar
I think it could be a simple change that will add value to it
h
@jonny @Barba it might be worth creating an issue on GitHub I could then try pick it up :)
b
Sure, I’ll create a ticket tomorrow morning 😉, to late here in Europe lol
h
Yeah I should probably get some sleep 🤣
Feel free to tag me in the PR and give a link to the main message of this thread in additional context
b
👌