Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 4030

UUID issue with passport Laravel

$
0
0

I want to use UUID in Laravel passport instead of the default id in my laravel project.

I changed all the user_id and client_id columns to uuid in the migrations and i add Passport::ignoreMigrations() in the register method in AppServiceProvider.

When i tested in postman by creating a new raw in users table, i get in my response the token but when i use this token in a secured route i always get response status:

401 Unauthorized and in the response body message:Unauthenticated.

Viewing all articles
Browse latest Browse all 4030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>