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

How can I rewrite this?

Currently I am trying to write RESTapi for a website with users and flashcards. I am using a MERN stack in order to build this. The mongodb structure is the following: //FlashCardSchema const flashcardSchema = new Schema({ deckID: { type:…

VIEW QUESTION
Back To Top
Search