Samy
BABetter Auth
•Created by Samy on 3/27/2025 in #help
Auto logout
is there any way to get the session data from the site?
25 replies
BABetter Auth
•Created by Samy on 3/27/2025 in #help
Auto logout
my app works like, if
accounts.google.com
opens in the app, it opens the url in the users browser where they have their accounts, after they select their account they redirects to http://localhost:3939/oauth/callback
that is a server created from the electron app, and when user redirects to this url, the app opens the api route ${DOMAIN}/api/auth/callback/google
for signiin with the data25 replies
BABetter Auth
•Created by Samy on 3/27/2025 in #help
Auto logout
sorry, I don't understand what you meant. this is how im doing it
25 replies
BABetter Auth
•Created by Samy on 3/27/2025 in #help
Auto logout
but then there is not state in the callback url:
2025-03-27T09:51:21.255Z ERROR [Better Auth]: State not found undefined
it redirects to to http://localhost:3939/oauth/callback
but with the data or state with it25 replies
BABetter Auth
•Created by Samy on 3/27/2025 in #help
Auto logout
is there any way to ignore this error?
because in electron js, I need to change the redirect url to
http://localhost:3939/oauth/callback
to redirect back from the browser to app
25 replies
BABetter Auth
•Created by Samy on 3/27/2025 in #help
Auto logout
it still not working
in development If i add the secondary storage and don't provide the the redis url (then it will return null), and try to login, my account is not showing, it still only checking from secondary storage and if I remove secondary storage, it works fine
25 replies
BABetter Auth
•Created by Samy on 3/27/2025 in #help
Auto logout
I hope you will add it in the future
25 replies
BABetter Auth
•Created by Samy on 3/27/2025 in #help
Auto logout
can I make it so, if the session is not available on redis it will search the primary db?
25 replies
BABetter Auth
•Created by Samy on 3/27/2025 in #help
Auto logout
no, Im using secondary storage from the beginning, but I did switch to a new server
25 replies
BABetter Auth
•Created by Samy on 3/27/2025 in #help
Auto logout
@Ping sorry for pinging but I really need to fix this fast
25 replies
BABetter Auth
•Created by Samy on 3/27/2025 in #help
Auto logout
I think the problem is with secondary storage
if it didn't find the data in secondary storage, it doesn't check on the db
25 replies