skip to Main Content

Laravel : JWT Auth access auth()->user() return null

i am trying to use JWT for api authentication i am building, i have managed to get the JWT token with code like the following. $user = User::select('id_user', DB::raw('AES_DECRYPT(id_user, "nur") as username')) ->where('id_user', DB::raw('AES_ENCRYPT("' . $credentials['username'] . '", "...")')) ->where('password',…

VIEW QUESTION
Back To Top
Search