Posts by Maxuel Rodrigues • 21 points
1 post
-
2
votes0
answers111
viewsQ: Laravel and JWT - Does not generate token (invalid credentials)
I’m having a problem using the following code: $credentials = $request->only('email', 'senha'); try { if(! $token = JWTAuth::attempt($credentials)){ return response()->json(['error' =>…