varundeva
varundeva
BABetter Auth
Created by Exoden on 2/26/2025 in #help
Update session manually
Session table you can update using orm Also by adding additional field you can get that key value along with better auth Mine also similar case I added many profile fields, i want that to get when user login I'm getting it but I'm using secondary database redis to reduce main db calls on each refresh. Otherwise it call session and user table on each hard refresh There Is no way to update redis session cache when i make change in user table If i logout and login it works fine, i get values. I didn't found any api to update session
16 replies
BABetter Auth
Created by Duki on 2/28/2025 in #help
Is it possible to set callbackUrl on server-side email sign Ups?
Maybe it's not working I didn't checked But I'm using redirect() in onSuccess method
9 replies
BABetter Auth
Created by varundeva on 2/17/2025 in #help
Which is proper way for api authentication for nextJs api? taking more time to give response
Now I'm updating user data from server action But my session is in secondary database redis Basically i want refresh the session in redis. Now even refresh page also not helping out It will call session api and gets same session from redis which is not updated
13 replies
BABetter Auth
Created by varundeva on 2/17/2025 in #help
Which is proper way for api authentication for nextJs api? taking more time to give response
Yep Forcefully logginout user or asking user to relogin wont looks good Else i have to make separate api to get that isOnboarded flag Now along with userdata that comes easily My plan is if user not onboarded redirecting them to onboard page
13 replies
BABetter Auth
Created by varundeva on 2/17/2025 in #help
Which is proper way for api authentication for nextJs api? taking more time to give response
Are you saying get session from db and update? I'm using secondary database also. There also i need to update the session basically Any function available to refresh the session?
13 replies
BABetter Auth
Created by varundeva on 2/17/2025 in #help
Which is proper way for api authentication for nextJs api? taking more time to give response
One more thing @bekacru I have extended user table and added isOnboarded boolean That's to check user onboarded or not And I'm getting that key in session Once user onboarded that flag turns to true But my session coming from cache So its not turning to true till logout and login Or session cache time i set 10 minutes Is there any way to manually update session cache?
13 replies
BABetter Auth
Created by varundeva on 2/17/2025 in #help
Which is proper way for api authentication for nextJs api? taking more time to give response
I was disabled cookie caching Maybe thats why causing much time However i started to use server actions
13 replies
BABetter Auth
Created by varundeva on 2/9/2025 in #help
Why im getting error : The field "identifier" does not exist in the "verification" schema. ?
This issue also resolved 🙂
26 replies
BABetter Auth
Created by varundeva on 2/9/2025 in #help
Why im getting error : The field "identifier" does not exist in the "verification" schema. ?
No description
26 replies
BABetter Auth
Created by varundeva on 2/9/2025 in #help
Why im getting error : The field "identifier" does not exist in the "verification" schema. ?
in each schema i made it as default export. now everything working fine
26 replies
BABetter Auth
Created by varundeva on 2/9/2025 in #help
Why im getting error : The field "identifier" does not exist in the "verification" schema. ?
@bekacru found one issue. if all the schema is in root folder which is default generated auth-schema.ts then everything working fine. if i split schema into multiple files then error is getting
26 replies
BABetter Auth
Created by varundeva on 2/9/2025 in #help
Why im getting error : The field "identifier" does not exist in the "verification" schema. ?
its working, deleted database and created again with latest migration
26 replies