GenTux\Jwt\Exceptions\JwtExceptionHandler::handleJwtNoSecret PHP Méthode

handleJwtNoSecret() protected méthode

protected handleJwtNoSecret ( NoSecretException $e ) : Illuminate\Http\Response
$e NoSecretException
Résultat Illuminate\Http\Response
    protected function handleJwtNoSecret(NoSecretException $e)
    {
        $message = getenv('JWT_MESSAGE_NOSECRET') ?: 'No JWT secret defined.';
        return response()->json(['error' => $message], 500);
    }