advice on how to migrate away from this to Laravel Sanctum #132
-
originally asked at: tymondesigns/jwt-auth#2174 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I don't think that you need to migrate your password hashes. Because jwt-auth and Sanctum both rely on the Auth-facade and use In the documentation of sanctum is an example how to implement a login method: https://laravel.com/docs/9.x/authentication#authenticating-users |
Beta Was this translation helpful? Give feedback.
I don't think that you need to migrate your password hashes. Because jwt-auth and Sanctum both rely on the Auth-facade and use
Auth::attempt($credentials)
to authenticate a user.In the documentation of sanctum is an example how to implement a login method: https://laravel.com/docs/9.x/authentication#authenticating-users