airtailor / react-express-fe

react app for portal
0 stars 0 forks source link

401's Sometimes Do Not Log Us Out #27

Open jaredmurphy opened 6 years ago

jaredmurphy commented 6 years ago

But they should!

jaredmurphy commented 6 years ago

Example: Friday Dec 8

// rails 
Started GET "/auth/validate_token" for 127.0.0.1 at 2017-12-08 12:11:28 -0500
Processing by Overrides::TokenValidationsController#validate_token as HTML
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."uid" = $1 LIMIT $2  [["uid", "brian@airtailor.com"], ["LIMIT", 1]]
Completed 401 Unauthorized in 68ms (Views: 0.2ms | ActiveRecord: 0.4ms)

// node 
 status: 401

 // chrome
 err TypeError: Cannot read property 'headers' of undefined
    at t.setTokens (bundle.de6688b9fbdd104a5d08.js:1)
    at <anonymous>
jaredmurphy commented 6 years ago

recently updated node server route to go to delete /api/auth and is now hitting signout successfully.