Determine if new user without callbacks in expo
When using
authClient.signin.social
in an expo app the deep link callbacks don't currently work, sounds like it should be fixed in an upcoming version. In the meantime I'm using the workaround that is in the example expo project to force a redirect after authenticating:
Until the new user callback is an option, is there an easy way to handle dealing with new users? I'm trying to avoid adding fields to the db just for this purpose (ex: newAccountSetupCompletedAt which defaults to null), but it's seeming like the most reasonable approach right now. Are there any better options?4 Replies
for newUserCallback , you can use this -
how are u passing the link forcallbacks ?
since better auth will do the deep link for you
I have another thread from last week that was asking about the callbacks not working (https://discord.com/channels/1288403910284935179/1355677792494288946), seems like it should be fixed at some point in the future, but for now it doesn't work.
The
useEffect
block in the opening message for this thread is the workaround I'm using. Found it in the example here:
https://github.com/better-auth/better-auth/blob/main/examples/expo-example/src/app/index.tsx#L18-L24can u give me ur expo client auth config if possible .. i have seen this issue somewhere and also backend config if possible
Sorry for the delay, here's the config ^