For some reason, when fetching the session const session = await auth.api.getSession({ headers: await headers(), // Pass headers directly for server-side calls }); is returning null . any changes/updates?
@@CandDev It has a 2FA feature, I tried OTP it worked fine for me, but I couldn't implement TOTP. I think you should check it out and make a video about it, implementing both OTP and TOTP. It would be very helpful for us
There are plenty of other easy options for that. When you depend on Google you sign away control over your users. As in Google can pull the plug on you any given day.
This was huge for me transferring from auth. thank you great stuff.
been searching this. thanks cand. and im surprised that youre indonesian too... GOODLUCK ON THE CHANNEL
thanks bro
Thanks beka 🇪🇹
You're welcome, Beka! 🇪🇹
Thanks man always on time please cover it deeply for ex email verification it would be too helpful.
I hope to cover that in the next video
@CandDev great 👍
Better Auth is Better as its name
yes, it's making auth easier
even thou i used mysql, it still the same, works fine, thanks man,
how can we protect our routes on the backend that only admins can use these api routes ?
For some reason,
when fetching the session
const session = await auth.api.getSession({
headers: await headers(), // Pass headers directly for server-side calls
}); is returning null . any changes/updates?
can you please look into it, the source code doesnt work for some reason
Sir how to grab session or userId in client components??
You can get that from authClient.getSession(), or just check the GitHub repo; I've already added a useSession hook.
can you please help me out with two-factor-authentication or maybe make a video about it?
better-auth doesn’t have a built-in 2FA feature yet, hopefully coming soon
@@CandDev It has a 2FA feature, I tried OTP it worked fine for me, but I couldn't implement TOTP. I think you should check it out and make a video about it, implementing both OTP and TOTP. It would be very helpful for us
talking about fonts, where tf are your nerd font icons 😭😭
Too bad there is no 2fa or Google login
There are plenty of other easy options for that. When you depend on Google you sign away control over your users. As in Google can pull the plug on you any given day.
@anubisai it's OAuth the user will be saved to our database they can always request a password reset not signing away any control?!
there is
Google login is available, but 2FA isn’t yet. hopefully coming soon
Huh what? Not only does it have both google login and 2fa, it also supports google one tap (and million other features)