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

user is logged in and still fetchLoggedInUserId() method getting 'rest_not_logged_in' error #67

Open
hanmadrin opened this issue Sep 14, 2021 · 1 comment

Comments

@hanmadrin
Copy link

Everything was working last time I checked.
await wooCommerce.isCustomerLoggedIn(); returns true

but, await wooCommerce.fetchLoggedInUserId(); gets 'rest_not_logged_in' error

@hanmadrin
Copy link
Author

I encountered something weird.
woocommerce.loginCustomer(username: username, password: password);
This returns 'You are currently not logged in'
and await wooCommerce.isCustomerLoggedIn(); returns true

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