Hi everyone. I have a noob question. I have a working auth setup using Xano Auth plugin. However, every time I reload the page I get logged out. May I know how to keep my account logged in?
Any feedback is highly appreciated. Thanks in advance!
Hi everyone. I have a noob question. I have a working auth setup using Xano Auth plugin. However, every time I reload the page I get logged out. May I know how to keep my account logged in?
Any feedback is highly appreciated. Thanks in advance!
That should not be happening… when you say that you are logged out, what are you referring to? How do you determine that you are being logged out?
Hmm. The three problems could be one of:
If you are using all of the xano auth components to log in, and you are receiving back an authToken from Xano, then my guess is that you have a logout action that is accidentally getting called on page load or some other action.
The only way to reset the authentication should be to either: 1) use the Plugin logout action in a workflow, 2) manually remove the cookie and variables using Javascript, or 3) if the authToken expires in Xano. (Option 4 could be is the page is being republished or a Xano update during a session - rare cases)
If you go into your global workflows, do you have any logout actions that are getting called?
How about on page reload? Are there any logout actions there called accidentally?
Is this on every page, or just one page?
Taking a loom video and posting it here walking through your login/page load process would help to diagnose the problem.
@cbpcanda where is this button located? Is it in a separate section? possibly a linked section?
The button exists on multiple pages(Navigation section).
yup, hard refresh . .