laravel-echo-module icon indicating copy to clipboard operation
laravel-echo-module copied to clipboard

Solving unauthorized error when using sanctum

Open radudiaconu0 opened this issue 3 years ago • 5 comments

radudiaconu0 avatar Apr 07 '21 12:04 radudiaconu0

Codecov Report

Merging #50 (1fe4e08) into main (7f49095) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##              main       #50   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           19        19           
  Branches         6         6           
=========================================
  Hits            19        19           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7f49095...1fe4e08. Read the comment docs.

codecov[bot] avatar Apr 07 '21 12:04 codecov[bot]

Hi @radudiaconu0 Laravel sanctum works with header JavaScript HTTP client sends the value of the XSRF-TOKEN cookie in the X-XSRF-TOKEN header. https://laravel.com/docs/8.x/sanctum#logging-in

ricardogobbosouza avatar Apr 07 '21 12:04 ricardogobbosouza

@ricardogobbosouza Ah ok. I understand. But I don't get why I get unauthenticated error

radudiaconu0 avatar Apr 07 '21 12:04 radudiaconu0

@ricardogobbosouza ok now i get pusher not defined error lol

radudiaconu0 avatar Apr 07 '21 13:04 radudiaconu0

Hi @radudiaconu0 Try ^2.0.0-alpha.4

ricardogobbosouza avatar Apr 07 '21 13:04 ricardogobbosouza