mstaack / lumen-api-starter

Quickstarter for Lumen
60 stars 19 forks source link

Access protected routes via Paseto token #12

Closed linatt closed 5 years ago

linatt commented 5 years ago

Hi there,

I would like to know how I can access the protected routes after loggin in with my email and password. I do receive the token but when I post it to /auth/user I only get 401.

Best regards linatt

mstaack commented 5 years ago

hi you need to specify an Authorization Header check: https://github.com/mstaack/lumen-api-starter/blob/master/app/Extensions/Authentication/PasetoAuthGuard.php#L118