1. in the new project try app1 for verify user
2. not working
3. try secret from the first app works
### Expected behaviour
I was Expected to use the app1 ex 'ZNF9rMdaAq8AI3koJ1AfNfokm9o5kZ3dnts4qirwIl0QErgDkf05umHUVa88rqeo' as JWT_SECRET i
### Actual behaviour
not working with 'ZNF9rMdaAq8AI3koJ1AfNfokm9o5kZ3dnts4qirwIl0QErgDkf05umHUVa88rqeo' as JWT_SECRET working with main app secret
JWTAuth::getJWTProvider()->setSecret(... dosent work.
Steps to reproduce
add _construct()
ApiOne public function verifyToken(Request $request) { try { $token = $request->bearerToken() ?: $request->query('token'); JWTAuth::setToken($token); $user = Auth::guard('api')->user(); $customClaims = $user->getJWTCustomClaims(); $response =[ 'user' => $user, 'customClaims' => $customClaims, 'claims' => JWTAuth::claims($customClaims)->fromUser($user), ]; return response()->json(['response' => $response], 200); } catch (\Tymon\JWTAuth\Exceptions\TokenExpiredException $e) { // Token has expired return response()->json(['error' => 'Token expired'], 401); } catch (\Tymon\JWTAuth\Exceptions\TokenInvalidException $e) { // Token is invalid return response()->json(['error' => 'Token invalid'], 401); } catch (\Tymon\JWTAuth\Exceptions\JWTException $e) { // Token is absent from the request return response()->json(['error' => 'Token absent'], 401); } }