Replies: 1 comment
-
I"m going to answer my own question as I think I figured out one of the problems. If you set persistent cookies true you still have to set a time out. I set a longer time out and so far I'm not getting kicked out of my sesh. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using the pouch-authentication plugin. Cookie based auth. osx localhost couch 3.1.
I get
{error: "unauthorized", reason: "Name or password is incorrect.", status: 401, name: "unauthorized", message: "Name or password is incorrect."}
if i wait 5 min or so i resend request with out reloading app it goes through
{userName: "TravisPancakes", pass: "testPass12"}
sometimes i can't even login in regardless and throws a http / https adapter error. I'm using chrome browser
I had this issue with couch 2.3 also. I don't remember if it still happens on digital ocean production server but i'm trying to develop off grid so i wish this worked all the time on localhost. i checked header and proper credentials get sent. Anybody have this issue? Maybe I need to ditch the pouch-authentication plugin, but I don't know how to write axios requests to the couchdb api. I wish there was examples of this in the doc's not just curl.
Maybe its cause I'm changing password with admin user on my middleware express server. But after that passing password to user to login from app i chrome.
Oh and I also have it on persistent cookies and sometimes that cookie times out on me in chrome which is annoying. This usually happens I think when i'm logging in to faxton with fire fox to edit my db with admin user. Maybe I'll try logging in with the same user on both browsers.
First world problems.. Well hopefully someone that reads this can help me out. Thanks
Beta Was this translation helpful? Give feedback.
All reactions