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

feathers-jwt after nginx proxy - cannot authenticate user. #460

Open
ducnvhn opened this issue Jul 17, 2018 · 1 comment
Open

feathers-jwt after nginx proxy - cannot authenticate user. #460

ducnvhn opened this issue Jul 17, 2018 · 1 comment

Comments

@ducnvhn
Copy link

ducnvhn commented Jul 17, 2018

hi @bertho-zero .
I hope you are not too busy so you could have a minute to look into and help me with my problem.
I have app setup like this:
Client -> Nginx proxy -> Server(port3000) -> API (port 3030).
and an redux action for example using feathers client:

export const makePost = data => ({
 types: [MAKE_POST, MAKE_POST_S, MAKE_POST_F],
 promise: ({ app }) => app.service('posts').create(data)
});
// feathers hook: 
import { associateCurrentUser } from 'feathers-authentication-hooks';
..
.
.
export const postHooks = {
 before: {
  create: [associateCurrentUser({ idField: '_id', as: 'user' }), ...]
 }
};

This hook work totally fine in computer browser. but it doesn't work on mobile browswers (Chrome/ FF...). I don't know if it was my setup or its a feathers hook / socket.io-client or browser bug?
I also copy nginx conf from this repo but it does not work.

Can you have some advise please.

@bertho-zero
Copy link
Owner

Is it possible that this is related to this: https://stackoverflow.com/questions/22507555/socket-io-issue-only-on-mobile-devices ?

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

2 participants