node.js - Nodejs-Express, PHP-Laravel, JWT Authentication depending on browser? -
i've got following issue:
my website divided mainpages www.example.com (php-laravel) , chat-application www.sub.example.com (with subdomain written in nodejs).
for authentication im using jwt , dotnev(connect laravel .env file).
within tokencontroller:
public function token(\tymon\jwtauth\jwtauth $auth) { if (!sentinel::check()) { return response()->json(['error' => 'not_logged_in'], 401); } ... }
when i'm login chrome on desktop-pc works fine , goes further if-statement in ie-11 , on safari (macos elcapitan) working absolulty out problems, if login opera or chrome on android device run in error 401 not_logged_in. idea im doing wrong, or i'm missing? :)
more information: if i'm loggedin (doesn't matter browser) , i'm doing: www.example.com\token (laravel route token, i'll token :) server running nginx/reverse-proxy.
i used this tutorial understand exchange between laravel , nodejs. thank help/ideas.
Comments
Post a Comment