stormpath-express-react-example icon indicating copy to clipboard operation
stormpath-express-react-example copied to clipboard

401 unauthorized /me

Open mdeggies opened this issue 8 years ago • 4 comments

Clone the sample project and open dev tools -> Navigate to localhost:3000 -> You'll see a 401 error, a GET request to /me.

screen shot 2017-01-19 at 3 34 32 pm

mdeggies avatar Jan 19 '17 23:01 mdeggies

@mdeggies I'm not sure this is supposed to be considered an error? It's essentially checking if there is a current user and failing, because there is no current user for this session. The browser is the one handling the cookies here and this is expected behaviour.

the-overengineer avatar Jan 23 '17 11:01 the-overengineer

@mdeggies is this using a flow where you authenticated against the client API? If so that is a known problem that we're working on and hope to fix today, it will require a new release of express-stormpath.

robertjd avatar Jan 23 '17 20:01 robertjd

@robertjd Ahh yep, that's it. I am using Client API here. Btw, happy birthday! :)

mdeggies avatar Jan 23 '17 22:01 mdeggies

Hey @mdeggies can you try again? I just updated this example, and it should be working with Client API tokens now.

robertjd avatar Jan 25 '17 23:01 robertjd