skip to Main Content

Refreshing tymon/jwt-auth token in Laravel API

I have a Laravel API which i have installed tymon/jwt-auth into ... To log the user in and get a token, im using the following; if (! $token = auth()->attempt($request->only('email', 'password'), true)) { throw ValidationException::withMessages([ 'email' => 'Invalid Credentials', ]);…

VIEW QUESTION
Back To Top
Search