ChadGPT
ChadGPT
BABetter Auth
Created by ChadGPT on 4/3/2025 in #help
Different frontend and backend URL with social logins
e.g.
const handleGoogleLogin = useCallback(async () => {
await signIn.social({
provider: 'google',
callbackURL: `${config.baseUrl}${redirectPath}`,
});
}, [redirectPath]);
const handleGoogleLogin = useCallback(async () => {
await signIn.social({
provider: 'google',
callbackURL: `${config.baseUrl}${redirectPath}`,
});
}, [redirectPath]);
4 replies
BABetter Auth
Created by ChadGPT on 4/3/2025 in #help
Different frontend and backend URL with social logins
I just had to provide a callbackURL during signIn.social
4 replies