Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getSession() method not working for different domain #271

Open
faisalabdulkadir opened this issue Dec 27, 2022 · 1 comment
Open

getSession() method not working for different domain #271

faisalabdulkadir opened this issue Dec 27, 2022 · 1 comment

Comments

@faisalabdulkadir
Copy link

I'm using the pouchdb-authentication plugin for my couchdb. whenever I try to login with a valid user via the domain http://localhost:5984/mydb the getSession() method returns the respective user name in the userCxt (userCtx: {name:"testUser", roles: []}). However the moment I try to use a different domain like http://127.0.0.1:5984/mydb getSession() method returns a null name (userCtx: {name: null, roles: []}). I'm using vue for my front end

Expected Behavior

I'm actually expecting to be able to login any remote couchdb domain and the getSession() method should return the respective authenticated userCxt name

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

1.Install pouchdb 7.3.1 and created a pouchdb instance to a couchdb http server
2. Install pouchdb-authentication and use the plugin with pouchdb
3. pass username and password to the pouchdb instance via a vue form and authenticating the user with login() method
4. call the getSession() method on the authenticated user

Context

Your Environment

  • Version of PouchDB Authentication: 1.1.3
  • Version of PouchDB: 7.3.1
  • Platform name and version:
  • Operating System and version: MacOS Catalina
  • Server: CouchDB
  • Link to your project:
@faisalabdulkadir
Copy link
Author

faisalabdulkadir commented Jan 5, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant